My Project
Functions
sif.c File Reference
#include "sif.h"
Include dependency graph for sif.c:

Go to the source code of this file.

Functions

void sifInit (SIF *data)
 
void sifEmpty (SIF *data)
 
int sifSetmem (SIF *data, int frameNr)
 

Function Documentation

◆ sifEmpty()

void sifEmpty ( SIF data)

Free memory allocated for SIF. All contents are destroyed.

Parameters
dataponter 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().

Here is the caller graph for this function:

◆ sifInit()

void sifInit ( SIF data)

Initiate SIF structure. This should be called once before first use.

Parameters
datapointer 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().

Here is the caller graph for this function:

◆ sifSetmem()

int sifSetmem ( SIF data,
int  frameNr 
)

Allocates memory for SIF data. Old data is destroyed.

Parameters
datapointer to SIF data allocated here
frameNrnumber of PET time frames
Returns
0 if ok, 1 failed memory allocation

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().

Here is the call graph for this function:
Here is the caller graph for this function: