|
TPCCLIB
|
General routines for image reconstruction procedures. More...
#include "libtpcrec.h"Go to the source code of this file.
Functions | |
| void | recSinTables (int views, float *sinB, float *sinBrot, float rotation) |
| void | recInterpolateSinogram (float *srcsino, float *newsino, int srcrays, int newrays, int views) |
| int | bit_rev_int (int x, int n) |
| void | set_os_set (int os_sets, int *set_seq) |
| int | recGetStatistics (float *buf, int n, float *osum, float *omin, float *omax, int skip_zero_mins) |
General routines for image reconstruction procedures.
Based on the code written by Sakari Alenius.
Definition in file recutil.c.
| int bit_rev_int | ( | int | x, |
| int | n ) |
Bit-reverse for integers in a list, used by set_os_set().
| x | Integer to bit-convert. |
| n | Number of elements. |
Definition at line 77 of file recutil.c.
Referenced by set_os_set().
| int recGetStatistics | ( | float * | buf, |
| int | n, | ||
| float * | osum, | ||
| float * | omin, | ||
| float * | omax, | ||
| int | skip_zero_mins ) |
Get the sum and minimum and maximum values from a list of floats, optionally ignoring zero values from the minimum.
| buf | Pointer to the float array of length n. |
| n | Array size. |
| osum | Sum of array values is returned here; enter NULL if not needed. |
| omin | Minimum value is returned here; enter NULL if not needed. |
| omax | Maximum value is returned here; enter NULL if not needed. |
| skip_zero_mins | Skip zero values when determining the minimum; 1 or 0. |
Definition at line 154 of file recutil.c.
Referenced by mrp().
| void recInterpolateSinogram | ( | float * | srcsino, |
| float * | newsino, | ||
| int | srcrays, | ||
| int | newrays, | ||
| int | views ) |
Interpolate sinogram so that the sinogram bin width is the same as the image pixel width.
| srcsino | Source sinogram data, size of srcrays*views. |
| newsino | New interpolated sinogram data calculated here; must be allocated with size newrays*views. |
| srcrays | Number of rays (bins, columns) in the original sinogram. |
| newrays | Number of rays (bin, columns) in the new interpolated sinogram. |
| views | Number of projection views (angles, rows) in both sinograms. |
Definition at line 37 of file recutil.c.
| void recSinTables | ( | int | views, |
| float * | sinB, | ||
| float * | sinBrot, | ||
| float | rotation ) |
Pre-compute the sine tables for back-projection.
| views | Number of views (sinogram rows). |
| sinB | Array of sine values, length 3*views/2 |
| sinBrot | Array of sine values with rotation, length 3*views/2; enter NULL if not needed. |
| rotation | Rotation (degrees). |
Definition at line 12 of file recutil.c.
Referenced by fbp(), imgFBP(), imgMRP(), imgReprojection(), mrp(), reprojection(), and trmrp().
| void set_os_set | ( | int | os_sets, |
| int * | set_seq ) |
Make the Ordered Subset process order (bit-reversed sequence).
| os_sets | Nr of OS sets. |
| set_seq | Array of length os_sets to be filled here. |
Definition at line 113 of file recutil.c.