Synkrotomo setup guide linux
Guide for installing futhark:
- Download the latest tarball here: https://futhark-lang.org/releases/futhark-nightly-linux-x86_64.tar.xz
- Unpack it using the command $ tar -xf futhark-nightly-linux-x86_64.tar.xz
- Then go to the folder where it unpacked $ cd futhark-nightly-linux-x86_64
- Execute the install command $ make install
Download synkrotomo repository
- Download https://github.com/tomograph/synkrotomo
Distribute and install synkrotomo
- $ cd synkrotomo
- $ make lib
- $ python setup.py sdist
- copy the generated tarball in the dist folder to your home folder
- Unpack the generated tarball in the dist folder $ tar -xf synkrotomo-xx.tar.gz
- cd to the directory synkrotomo-xx
- install using $python setup.py install
You should now be able to import the different algorithms in python using "from futhark import SIRT" and calling them like this:
sirt = SIRT.SIRT()
result = sirt.main(theta.astype(np.float32), rhozero, deltarho, emptyimage, sinogram.flatten().astype(np.float32), iterations).get()
reconstruction_result = result.reshape((size,size))