GithubHelp home page GithubHelp logo

geant4_cbct's Introduction

Geant4模拟CBCT实例

Geant4安装

由于Geant4在Windwos上不支持多线程,不推荐直接在Windows上安装,Windows平台推荐WSL2或VirutalBox等虚拟机。

  1. 安装OpenGL、Qt5和Geant4

在项目根目录下运行instal.sh,自动安装

请确保网络状态良好,编译可能需要数十分钟。

sudo bash ./install.sh
  1. 将Geant4添加至环境变量
echo 'source /geant4/geant4-install/bin/geant4.sh' >> ~/.bashrc
echo 'source /geant4/geant4-install/share/Geant4-11.0.4/geant4make/geant4make.sh' >> ~/.bashrc
source ~/.bashrc

P.S. 如果需要其他功能,如ROOT,请自行参考官网安装。

Python重建

首先配置Python环境

conda create -n cbct python=3.10
conda activate cbct
conda install -c astra-toolbox astra-toolbox
python -m pip install -r requirements.txt

执行模拟

cd geant4
bash run.sh
cd ../python
python simulate_projection.py

重建

python reconstruction.py

geant4_cbct's People

Contributors

stone-16 avatar

Stargazers

 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.