libtpcmodext
 All Files Functions Variables Defines
Functions
units.c File Reference
#include <stdio.h>
#include <stdlib.h>
#include <math.h>
#include <string.h>
#include <time.h>
#include "include/libtpcmodext.h"
Include dependency graph for units.c:

Go to the source code of this file.

Functions

int cunit_check_dft_vs_img (DFT *dft, IMG *img, char *errmsg)

Function Documentation

int cunit_check_dft_vs_img ( DFT *  dft,
IMG *  img,
char *  errmsg 
)

Check that calibration units in IMG (PET image) and DFT (input TAC) are the same, and if not, then try to convert DFT calibration unit to IMG unit. If input unit is unknown, then assume it is the same as the PET unit.

Returns:
Returns 0 if successful, >0 in case of error, and <0 in case of a warning or error message to user is suggested.
Parameters:
dftPointer to DFT
imgPointer to IMG
errmsgChar pointer to string (at least of length 128) where possible error description or warning is copied; set to NULL if not necessary

Definition at line 53 of file units.c.

References MODEXT_TEST.