Geometry#

defaultGeometry#

function geo=defaultGeometry(varargin)
geo = defaultGeometry() generates a default geometry for tests.
Optional parameters

'mode'      : 'parallel' or 'cone'
'nVoxel'    : 3x1 matrix of size of the image
'nDetector' : 2x1 matrix of size of the detector

Source: MATLAB/Utilities/defaultGeometry.m

checkGeo#

function geo=checkGeo(geo, angles )
CHECKGEO checks for correctness in the geometry struct and prepares it
for usage in the mex files.

Source: MATLAB/Utilities/checkGeo.m

staticDetectorGeo#

function geo=staticDetectorGeo(geo,angles)
This function computes the translation and rotations needed in the system
to desribe a detector that does not move when the source moves.

Source: MATLAB/Utilities/staticDetectorGeo.m

computeCOR#

function centre=computeCOR(data,geo,angles,slice)
Code modified from SophiaBeads
(https://github.com/Sophilyplum/sophiabeads-datasets/blob/master/tools/centre_geom.m)
Reference:
T. Liu - "Direct central ray determination in computed microtomography",
Optical Engineering, April 2009.

Source: MATLAB/Utilities/computeCOR.m

flatten_detector#

function [flattened_proj,geo]=flatten_detector(proj,geo)
This function creates projections on a flat panel detector from a curved

Source: MATLAB/Utilities/flatten_detector.m

plotgeometry#

function h=plotgeometry(geo,angle)
PLOTGEOMETRY(GEO,ANGLE) plots a simplified version of the CBCT geometry with the
given geomerty GEO and angle ANGLE. If angle is not given, 0 will be chosen.

h=PLOTGEOMETRY(...) will return the figure handle

Source: MATLAB/Utilities/plotgeometry.m