|
TPCCLIB
|
Median Root Prior. More...
#include "libtpcrec.h"Go to the source code of this file.
Functions | |
| float | med9 (float *inp, int dim) |
| float | med21 (float *inp, int dim) |
| void | do_prior (float *img, float beta, float *med_coef, int dim, float small, int maskdim, float *maxm) |
Median Root Prior.
Based on the program fbprec (Feb 1998) written by Sakari Alenius for Sun UNIX workstations.
Definition in file mrprior.c.
| void do_prior | ( | float * | img, |
| float | beta, | ||
| float * | med_coef, | ||
| int | dim, | ||
| float | small, | ||
| int | maskdim, | ||
| float * | maxm ) |
Do prior in MRP reconstruction.
| img | Float array of size dim*dim containing the image data. |
| beta | Beta value. |
| med_coef | Median coefficients, an array of size dim*dim, calculated here. |
| dim | Image dimensions. |
| small | Limit for too small values. |
| maskdim | Mask dimensions; 3 or 5. |
| maxm | Max median coefficient; enter NULL if not needed. |
Definition at line 77 of file mrprior.c.
| float med21 | ( | float * | inp, |
| int | dim ) |
Compute 5x5 median without corners from image data inside float array.
| inp | Pointer to central pixel in image data, around which the median is computed. |
| dim | Image dimensions. |
Definition at line 49 of file mrprior.c.
Referenced by do_prior(), and trmrp().
| float med9 | ( | float * | inp, |
| int | dim ) |
Compute 3x3 median from image data inside float array.
| inp | Pointer to central pixel in image data, around which the median is computed. |
| dim | Image dimensions. |
Definition at line 15 of file mrprior.c.
Referenced by do_prior(), and trmrp().