TPCCLIB
|
Functions for setting image frame times. More...
#include "libtpcimgp.h"
Go to the source code of this file.
Functions | |
int | imgFramesCheck (IMG *img, int verbose) |
int | imgFrameGapFill (IMG *img, int verbose) |
int | imgDeleteFrameOverlap (IMG *img) |
int | imgDeleteFrameOverlap_old (IMG *img) |
int | imgSmoothOverFrames (IMG *img, int n) |
int | imgGetFrameDiff (IMG *img, IMG *dimg, IMG *mimg, int verbose) |
int | imgGetFrameDyn (IMG *img, IMG *iimg, IMG *dimg, int verbose) |
Functions for setting image frame times.
Definition in file imgframe.c.
int imgDeleteFrameOverlap | ( | IMG * | img | ) |
Correct frame times if frames are slightly overlapping or have small gaps in between. Large gap is not corrected and it does not lead to an error.
img | Pointer to IMG struct containing the 4D image data. |
Definition at line 77 of file imgframe.c.
Referenced by imgReadModelingData().
int imgDeleteFrameOverlap_old | ( | IMG * | img | ) |
Correct frame times so that frames are not overlapping.
img | Pointer to IMG struct containing the 4D image data. |
Definition at line 109 of file imgframe.c.
int imgFrameGapFill | ( | IMG * | img, |
int | verbose ) |
Fill gaps between time frames by extending adjacent frames over the gap. Overlaps, and gap before the first frame is ignored.
img | Pointer to IMG struct containing the 4D image data. |
verbose | Verbose level; if zero, then nothing is printed to stderr or stdout. |
Definition at line 50 of file imgframe.c.
int imgFramesCheck | ( | IMG * | img, |
int | verbose ) |
Check for gaps or overlap between frame times. Gap before the first frame is ignored.
img | Pointer to IMG struct containing the 4D image data. Data is not modified. |
verbose | Verbose level; if zero, then nothing is printed to stderr or stdout. |
Definition at line 15 of file imgframe.c.
Compute sum absolute difference and/or sum absolute average between consecutive frames.
img | Dynamic image; not modified. |
dimg | Pointer to an empty IMG struct in which the sum of absolute differences will be written; any old contents are deleted; NULL, if not needed. |
mimg | Pointer to an empty IMG struct in which the sum of absolute means will be written; any old contents are deleted; NULL, if not needed. |
verbose | Verbose level; if zero, then nothing is printed to stderr or stdout. |
Definition at line 180 of file imgframe.c.
Compute the number of increases and decreases between consecutive frames.
img | Dynamic image; not modified. |
iimg | Pointer to an empty IMG struct in which the nr of increases will be written; any old contents are deleted; NULL, if not needed. |
dimg | Pointer to an empty IMG struct in which the nr of decreases will be written; any old contents are deleted; NULL, if not needed. |
verbose | Verbose level; if zero, then nothing is printed to stderr or stdout. |
Definition at line 249 of file imgframe.c.
int imgSmoothOverFrames | ( | IMG * | img, |
int | n ) |
Smooth dynamic image data over specified number of time frames.
Average is weighted by frame durations. Gaps or overlaps in frame times are not taken into account. Do not use this for quantitative analysis, but only for robust peak search etc.
img | Pointer to IMG structure containing the 4D image data. |
n | Nr of frames to average; n must be an odd number and at least 3. |
Definition at line 136 of file imgframe.c.