#include <stdio.h>#include <stdlib.h>#include <unistd.h>#include <math.h>#include "include/radon.h"Functions | |
| void | radonEmpty (RADON *radtra) |
| int | radonSet (RADON *radtra, int mode, int imgDim, int viewNr, int binNr) |
| int | radonGetMO (RADON *radtra) |
| int | radonGetID (RADON *radtra) |
| int | radonGetNV (RADON *radtra) |
| int | radonGetNB (RADON *radtra) |
| float | radonGetSD (RADON *radtra) |
| int | radonGetHI (RADON *radtra) |
| int | radonGetCB (RADON *radtra) |
| float | radonGetSin (RADON *radtra, int nr) |
| int | radonFwdTransform (RADON *radtra, int set, int setNr, float *imgdata, float *scndata) |
| int | radonFwdTransformEA (RADON *radtra, int set, int setNr, float *imgdata, float *scndata) |
| int | radonFwdTransformSA (RADON *radtra, int set, int setNr, float *imgdata, float *scndata) |
| int | radonFwdTransformPRM (PRMAT *mat, int set, int setNr, float *imgdata, float *scndata) |
| int | radonBackTransform (RADON *radtra, int set, int setNr, float *scndata, float *imgdata) |
| int | radonBackTransformEA (RADON *radtra, int set, int setNr, float *scndata, float *imgdata) |
| int | radonBackTransformSA (RADON *radtra, int set, int setNr, float *scndata, float *imgdata) |
| int | radonBackTransformPRM (PRMAT *mat, int set, int setNr, float *scndata, float *imgdata) |
| int | radonSetBases (RADON *radtra, ELLIPSE *elli, PRMAT *mat) |
| int | radonSetBasesEA (RADON *radtra, ELLIPSE *elli, PRMAT *mat) |
| int | radonSetLUT (RADON *radtra, ELLIPSE *elli, PRMAT *mat) |
| int | radonSetLORS (RADON *radtra, ELLIPSE *elli, PRMAT *mat) |
|
||||||||||||||||||||||||
|
Transforms the given sinogram in Radon domain to spatial domain. Parameters of the discrete Radon transform are stored in the RADON object. Transform is calculated only in those angles belonging into given subset. Subset contains angles starting from the index 'set' with spacing 'setNr'. Discretisation model utilised in this function is '0/1' or 'length of intersection' according to the given RADON object. INITIAL: scndata contains the projections in v x b lines of response. END: scndata is mapped into the cartesian space.
|
|
||||||||||||||||||||||||
|
Same as 'radonBackTransform()' but discretisation model in this function is 'exact area'. |
|
||||||||||||||||||||||||
|
Transforms the given sinogram in Radon domain to spatial domain. Transform is calculated by multiplying with the transpose of the given projection matrix from the right. Transform is calculated only in those angles belonging into given subset. Subset contains angles starting from the index 'set' with spacing 'setNr'. Discretisation model utilised in this function is '0/1', 'length of intersection' or 'exact area' according to the given projection matrix. INITIAL: scndata contains the projections with v x b lines of response. END: scndata is mapped into the cartesian space.
|
|
||||||||||||||||||||||||
|
Same as 'radonBackTransform()' but discretisation model in this function is 'linear interpolation' or 'nearest neighbour interpolation' according to the given Radon transform object. NOTE: first written by Sakari Alenius 1998. |
|
|
Frees the memory allocated for radon transform. All data is cleared. INITIAL: . END: radon transform is emptied.
|
|
||||||||||||||||||||||||
|
Performs the perpendicular model of the radon transform for the given vector in spatial domain. The discretisation mode is chosen according to transform object, discretisation mode is 0 or 1. Transform is performed in those angles belonging in the given subset. The set of coincidence lines is divided into subsets in the following way: let i be the number of subsets, then every ith angle in the base set and the ones symmetrical with it belong to the same subset. INITIAL: imgdata contains pixel values for every pixel in dim*dim image grid END: imgdata is mapped into the projection space.
|
|
||||||||||||||||||||||||
|
Same as 'radonFwdTransform()' but discretisation model in this function is 'exact area'. |
|
||||||||||||||||||||||||
|
Transforms the given intensity image in spatial domain to Radon domain. Transform is calculated by multiplying with the given projection matrix from the left. Transform is calculated only in those angles belonging into given subset. Subset contains angles starting from the index 'set' with spacing 'setNr'. Discretisation model utilised in this function is '0/1', 'length of intersection' or 'exact area' according to the given projection matrix. INITIAL: imgdata contains pixel values for every pixel in n x n image grid END: imgdata is mapped into the projection space.
|
|
||||||||||||||||||||||||
|
Same as 'radonFwdTransform()' but discretisation model in this function is 'linear interpolation' or 'nearest neighbour interpolation' according to the given Radon transform object. NOTE: first written by Sakari Alenius 1998. |
|
|
Returns the center bin in this radon transform.
|
|
|
Returns the half index of the bins in this radon transform.
|
|
|
Returns the image dimension in this radon transform.
|
|
|
Returns the discretization model of this radon transform.
|
|
|
Returns the number of bins in this radon transform.
|
|
|
Returns the number of views in this radon transform
|
|
|
Returns the sample distance in this radon transform.
|
|
||||||||||||
|
Returns the sine for given angle (index).
|
|
||||||||||||||||||||||||
|
Sets the data for the 2-D Radon transform. INITIAL: dim > 0 END: Parameters for the radon transform are set
|
|
||||||||||||||||
|
Sets the coordinates and factors for intersected pixels according to given special Radon transform operator for every coincidence line in the BASE set. Base set includes coincidence lines in range [0,pi/4]. INITIAL: radtra is a radon transform operator && elli defines a field of view && mat is initialized. END: coordinates and factors for pixels contributing to coincidence lines in the base set.
|
|
||||||||||||||||
|
Same as 'radonSetBases()' but discretisation model in this function is 'exact area'. |
|
||||||||||||||||
|
Sets the coordinates and factors for intersected pixels according to given special Radon transform operator for EVERY line of response. INITIAL: radtra is a radon transform operator && elli defines a field of view && mat is initialized. END: coordinates and factors for pixels contributing to all lines of response are set.
|
|
||||||||||||||||
|
Sets a look-up table containing coordinates of lines of response intersecting pixels inside a field of view. Lines of response contributing to a pixel are searched from already set projection matrix. INITIAL: radtra is a radon transform operator && elli defines a field of view && projections are set in structure mat. END: coordinates of lines response intersecting a pixel are set in a table.
|
1.4.1