GithubHelp home page GithubHelp logo

cil-demos's Introduction

CIL-Demos

CIL-Demos is a collection of jupyter notebooks, designed to introduce you to the Core Imaging Library (CIL).

The demos can be found in the demos folder, and the README.md in this folder provides some info about the notebooks, including the additional datasets which are required to run them.

image

Binder

Binder

To open and run the notebooks interactively in an executable environment, please click the Binder link above.

Note: In the Binder interface, there is no GPU available.

Install the demos locally

To install via conda, create a new environment using:

conda create --name cil-demos -c conda-forge -c intel -c astra-toolbox -c ccpi cil=22.1.0 astra-toolbox tigre ccpi-regulariser tomophantom "ipywidgets<8"

where,

astra-toolbox will allow you to use CIL with the ASTRA toolbox projectors (GPLv3 license).

tigre will allow you to use CIL with the TIGRE toolbox projectors (BSD license).

ccpi-regulariser will give you access to the CCPi Regularisation Toolkit.

tomophantom Tomophantom will allow you to generate phantoms to use as test data.

cudatoolkit If you have GPU drivers compatible with more recent CUDA versions you can modify this package selector (installing tigre via conda requires 9.2).

ipywidgets will allow you to use interactive widgets in our jupyter notebooks.

Dependency Notes

CIL's optimised FDK/FBP recon module requires:

  1. the Intel Integrated Performance Primitives Library (license) which can be installed via conda from the intel channel.
  2. TIGRE, which can be installed via conda from the ccpi channel.

Run the demos locally

  • Activate your environment using: conda activate cil-demos.

  • Clone the CIL-Demos repository and move into the CIL-Demos folder.

  • Run: jupyter-notebook on the command line.

  • Navigate into demos/1_Introduction

The best place to start is the 01_intro_walnut_conebeam.ipynb notebook. However, this requires installing the walnut dataset.

To test your notebook installation, instead run 03_preprocessing.ipynb, which uses a dataset shipped with CIL, which will have automatically been installed by conda.

Instead of using the jupyter-notebook command, an alternative is to run the notebooks in VSCode.

Advanced Demos

For more advanced general imaging and tomography demos, please visit the following repositories:

cil-demos's People

Contributors

epapoutsellis avatar gfardell avatar lauramurgatroyd avatar paskino avatar jakobsj avatar ccpi-admin avatar evelinaametova avatar vais-ral 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.