#include <stdio.h>#include <stdlib.h>#include <math.h>#include <string.h>#include <time.h>#include "include/halflife.h"#include "include/studynr.h"#include "include/img.h"Functions | |
| void | imgInit (IMG *image) |
| void | imgEmpty (IMG *image) |
| int | imgAllocate (IMG *image, int planes, int rows, int columns, int frames) |
| char * | imgUnit (int dunit) |
| char * | imgIsotope (IMG *img) |
| void | imgInfo (IMG *image) |
| int | imgDecayCorrection (IMG *image, int mode) |
| int | imgCopyhdr (IMG *image1, IMG *image2) |
| int | imgExtractRange (IMG *img1, IMG_RANGE r, IMG *img2) |
Variables | |
| char * | _imgStatusMessage [] |
|
||||||||||||||||||||||||
|
Allocates memory for img data. Old contents are not saved.
|
|
||||||||||||
|
Copies the header fields from one image struct to another. Does not copy memory addresses or sizes. Frame times and plane numbers are copied, if possible.
|
|
||||||||||||
|
Corrects (mode=1) or removes correction (mode=0) for physical decay. Removal is based on existing decay correction factors, if possible.
|
|
|
Free memory that is allocated for IMG. |
|
||||||||||||||||
|
Extract a smaller 4D image from inside an IMG. Any existing data is overwritten.
|
|
|
Prints img information to stdout; mainly for testing purposes. |
|
|
Call this once before any use of IMG data. |
|
|
Returns pointer to string describing the isotope in image data |
|
|
Returns pointer to string describing the calibrated image data unit
|
|
|
Initial value: {
"ok",
"fault in calling routine",
"out of memory"
}
|
1.4.1