#include "sif.h"
Go to the source code of this file.
Functions | |
void | sifInit (SIF *data) |
void | sifEmpty (SIF *data) |
int | sifSetmem (SIF *data, int frameNr) |
void sifEmpty | ( | SIF * | data | ) |
Free memory allocated for SIF. All contents are destroyed.
data | ponter to sif data |
Definition at line 74 of file sif.c.
References SIF::colNr, SIF::frameNr, SIF::isotope_name, SIF::prompts, SIF::randoms, SIF::scantime, SIF_TEST, SIF::studynr, SIF::trues, SIF::version, SIF::weights, SIF::x1, and SIF::x2.
Referenced by imgReadAnalyze(), imgReadAnalyzeFrame(), imgReadAnalyzeHeader(), sifRead(), and sifSetmem().
void sifInit | ( | SIF * | data | ) |
Initiate SIF structure. This should be called once before first use.
data | pointer to sif data |
Definition at line 61 of file sif.c.
References SIF::colNr, SIF::frameNr, and SIF_TEST.
Referenced by imgReadAnalyze(), imgReadAnalyzeFrame(), and imgReadAnalyzeHeader().
int sifSetmem | ( | SIF * | data, |
int | frameNr | ||
) |
Allocates memory for SIF data. Old data is destroyed.
data | pointer to SIF data allocated here |
frameNr | number of PET time frames |
Definition at line 95 of file sif.c.
References SIF::frameNr, SIF::prompts, SIF::randoms, SIF_TEST, sifEmpty(), siferrmsg, SIF::trues, SIF::weights, SIF::x1, and SIF::x2.
Referenced by imgGetMicropetSIF(), and sifRead().