My Project
|
#include <stdio.h>
#include <stdlib.h>
#include <math.h>
#include <time.h>
#include <string.h>
#include <ctype.h>
#include "include/img.h"
#include "include/imgfile.h"
#include "include/imgmax.h"
Go to the source code of this file.
Functions | |
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 | imgReadMinMax (const char *fname, float *fmin, float *fmax) |
int | imgSmoothMax (IMG *img, float *maxvalue) |
int imgAbsMax | ( | IMG * | img, |
float * | maxvalue | ||
) |
Searches the max absolute pixel value in the IMG data. Sets maxvalue to the absolute max value with sign.
img | image structure |
maxvalue | pointer to output |
Definition at line 86 of file imgmax.c.
References IMG::dimt, IMG::dimx, IMG::dimy, IMG::dimz, IMG_STATUS_OCCUPIED, IMG::m, and IMG::status.
Referenced by test_img_io().
int imgFrameMinMax | ( | IMG * | img, |
int | frame, | ||
float * | minvalue, | ||
float * | maxvalue | ||
) |
Searches the min and max pixel value in one frame (1..dimt) of the IMG data.
img | image structure |
frame | frame number [1..number of frames] |
minvalue | pointer to output of minimum |
maxvalue | pointer to output of maximum |
Definition at line 147 of file imgmax.c.
References IMG::dimt, IMG::dimx, IMG::dimy, IMG::dimz, IMG_STATUS_OCCUPIED, IMG::m, and IMG::status.
Referenced by img2svol(), and test_img_io().
int imgMax | ( | IMG * | img, |
float * | maxvalue | ||
) |
Searches the max pixel value in the IMG data.
img | image structure |
maxvalue | pointer to output |
Definition at line 57 of file imgmax.c.
References IMG::dimt, IMG::dimx, IMG::dimy, IMG::dimz, IMG_STATUS_OCCUPIED, IMG::m, and IMG::status.
Referenced by test_img_io().
int imgMinMax | ( | IMG * | img, |
float * | minvalue, | ||
float * | maxvalue | ||
) |
Searches the min and max pixel value in the IMG data.
img | image structure |
minvalue | pointer to output of minimum |
maxvalue | pointer to output of maximum |
Definition at line 115 of file imgmax.c.
References IMG::dimt, IMG::dimx, IMG::dimy, IMG::dimz, IMG_STATUS_OCCUPIED, IMG::m, and IMG::status.
Referenced by imgReadMinMax(), imgSetAnalyzeHeader(), imgWriteAnalyze(), and test_img_io().
int imgReadMinMax | ( | const char * | fname, |
float * | fmin, | ||
float * | fmax | ||
) |
Read the calibrated maximum and minimum pixel values in the specified file in ECAT 7, ECAT 6.3, or Analyze 7.5 format. File is read frame-by-frame with normal IMG functions.
fname | ECAT 7 or ECAT 6.3 filename, or Analyze 7.5 database |
fmin | pointer to minimum pixel value that will be set by this function |
fmax | pointer to maximum pixel value that will be set by this function |
Definition at line 180 of file imgmax.c.
References IMG_TEST, imgEmpty(), imgInit(), imgMinMax(), imgReadFrame(), STATUS_FAULT, STATUS_NOMATRIX, and STATUS_OK.
int imgSmoothMax | ( | IMG * | img, |
float * | maxvalue | ||
) |
Searches the spatially (3x3) smoothed max pixel value in the IMG data.
img | image structure |
maxvalue | pointer to output |
Definition at line 212 of file imgmax.c.
References IMG::dimt, IMG::dimx, IMG::dimy, IMG::dimz, IMG_STATUS_OCCUPIED, IMG::m, and IMG::status.