#include <stdio.h>#include <stdlib.h>#include <math.h>#include <time.h>#include "include/img.h"#include "include/imgproc.h"Functions | |
| int | imgArithm (IMG *img1, IMG *img2, char operation, float ulimit) |
| int | imgArithmConst (IMG *img, float operand, char operation, float ulimit) |
| int | imgArithmFrame (IMG *img1, IMG *img2, char operation, float ulimit) |
| int | imgThresholdTemplate (IMG *img, float minValue, float maxValue, IMG *timg) |
| int | imgThresholdByTemplate (IMG *img, IMG *template, float thrValue) |
| int | imgAverageTAC (IMG *img, float *tac) |
| int | imgAverageTemplateTAC (IMG *img, IMG *timg, float *tac) |
| int | imgAverageAUC (IMG *img, float *avgauc) |
| int | imgLog10 (IMG *img) |
| int | imgMax (IMG *img, float *maxvalue) |
| int | imgAbsMax (IMG *img, float *maxvalue) |
| int | imgMinMax (IMG *img, float *minvalue, float *maxvalue) |
| int | imgFrameMinMax (IMG *img, int frame, float *minvalue, float *maxvalue) |
| int | imgFrameIntegral (IMG *img, int first, int last, IMG *iimg) |
| int | imgRawCountsPerTime (IMG *img, int operation) |
| void | imgFlipHorizontal (IMG *img) |
| void | imgFlipVertical (IMG *img) |
| void | imgFlipPlanes (IMG *img) |
| int | imgSetScanner (IMG *img, int scanner_type) |
|
||||||||||||
|
Searches the max absolute pixel value in the IMG data. Sets maxvalue to the absolute max value with sign.
|
|
||||||||||||||||||||
|
Simple arithmetics between matching IMG planes and frames. Spefify the operation as one of characters +, -, /, :, *, ., x. Results that are higher than ulimit are set to ulimit.
|
|
||||||||||||||||||||
|
Simple arithmetics between IMG and specified constant. Spefify the operation as one of characters +, -, /, :, *, ., x. Results that are higher than ulimit are set to ulimit.
|
|
||||||||||||||||||||
|
Simple arithmetics between matching IMG planes and the first frame of img2. Spefify the operation as one of characters +, -, /, :, *, ., x. Results that are higher than ulimit are set to ulimit.
|
|
||||||||||||
|
Calculates the Area-Under-Curve of an average time-activity curve of all pixels or bins in the specified IMG data.
|
|
||||||||||||
|
Calculates an average time-activity curve of all pixels or bins in the specified IMG data.
|
|
||||||||||||||||
|
Calculates an average time-activity curve of pixels or bins in the specified IMG data. Template image specifies the pixels that are included in average (0=excluded, otherwise included). If all pixels are to be averaged, then NULL can be given instead of template.
|
|
|
Flip IMG data horizontally (left-right) |
|
|
Flip IMG data planes (head-toes). To work properly, the plane numbers must be contiguous. |
|
|
Flip IMG data vertically (up-down) |
|
||||||||||||||||||||
|
Integration from first frame (0..last) to last frame (first..dimt) to iimg, which is allocated here. Frames do not have to be continuous in time. Time unit in integral is sec. Raw data (sinogram) must be divided by frame durations before calling this.
|
|
||||||||||||||||||||
|
Searches the min and max pixel value in one frame (1..dimt) of the IMG data.
|
|
|
Replace IMG data values by their log10 values.
|
|
||||||||||||
|
Searche the max pixel value in the IMG data.
|
|
||||||||||||||||
|
Searches the min and max pixel value in the IMG data.
|
|
||||||||||||
|
Divide or multiply raw data (sinogram) counts by frame duration. If IMG is not raw data, division is quietly not done.
|
|
||||||||||||
|
Sets scanner specific parameters in IMG data. If possible, set image zoom before calling this.
|
|
||||||||||||||||
|
Threshold IMG by a template. Sets pixel values in img to thrValue, if corresponding pixel value in template is == 0. Only first plane of template is used.
|
|
||||||||||||||||||||
|
Creates a template image based on lower and upper threshold values. This function allocates memory for the template. If pixel value in original image is >=minValue and <=maxValue, the corresponding template pixel is set to 1, otherwise to 0. Only the first frame of images is applied.
|
1.4.1