Python utils for freeart.
will decrease the matrice size if possible where one dimension has only one element
Simple function which will add a dimension to the current matrice
Parameters: |
|
---|
will create an edf file to store the given data
Parameters: |
|
---|
Load data from the given edf file
Parameters: |
|
---|
Generate the fluorescence sinogram
Parameters: |
|
---|---|
Returns: |
|
Warning
all angle values must be given in rad
convert a material defined in a dictionnary (from tomoGUI for example. Used to be saved and loaded ) in a fisx Material. Won’t do the registration
Parameters: |
|
---|---|
Returns: | the fisx material |
initial material structure looks like : materialName = “My_mat” material = {‘Comment’:”No comment”,
‘CompoundList’:[‘Cr’, ‘Fe’, ‘Ni’], ‘CompoundFraction’:[18.37, 69.28, 12.35], ‘Density’:1.0, ‘Thickness’:1.0}
Final structure is a fisx Material : steel = {“Cr”:18.37,
“Fe”:69.28, # calculated by subtracting the sum of all other elements “Ni”:12.35 }
material = Material(“My_mat”, 1.0, 1.0) material.setComposition(steel)
Bases: object
Class for generating different Phantoms
Parameters: | n – The width (and height) of the phantom to generate |
---|---|
Returns: | A numpy array of dimension n*n fit with the sheppLogan phantom |
Benchmark file.
Create a graph for benchmarking the transmission forward projector
Parameters: |
|
---|
Create a graph for benchmarking the transmission reconstructor
Parameters: |
|
---|
Benchmark the fluo projection
Parameters: |
|
---|
benchmark the fluo reconstruction
Parameters: |
|
---|