libtpccurveio
 All Data Structures Files Functions Variables Enumerations Enumerator Defines
Functions
dftres.c File Reference
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <math.h>
#include <time.h>
#include "include/dft.h"
#include "include/dftio.h"
#include "include/dftunit.h"
#include "include/dftres.h"
Include dependency graph for dftres.c:

Go to the source code of this file.

Functions

int res_allocate_with_dft (RES *res, DFT *dft)
int dftToResult (DFT *dft, RES *res, char *status)

Function Documentation

int dftToResult ( DFT dft,
RES res,
char *  status 
)

Copy the contents (both header and data) of DFT struct into RES struct.

Returns:
Returns 0 if successful, in case of an error >0, and <0 if warning is suggested.
Parameters:
dftRegional data from where necessary information is read
resPointer to initiated RES struct which will be allocated here
statusPointer to a string (allocated for at least 64 chars) where error message or other execution status will be written; enter NULL, if not needed

Definition at line 101 of file dftres.c.

References DFT::frameNr, MAX_RESPARAMS, ResVOI::parameter, RES::parname, RES::parNr, RES::parunit, res_allocate_with_dft(), resFixParnames(), DFT::unit, RES::voi, DFT::voi, DFT::voiNr, and Voi::y.

Here is the call graph for this function:

int res_allocate_with_dft ( RES res,
DFT dft 
)

Allocate memory for regional results based on information in DFT.

Returns:
Returns 0 if successful, otherwise <>0.
Parameters:
resPointer to initiated RES struct which will be allocated here and filled with ROI names etc
dftRegional data from where necessary information is read

Definition at line 57 of file dftres.c.

References RES::datanr, RES::datarange, DFT_TIME_STARTEND, DFT::frameNr, ResVOI::hemisphere, Voi::hemisphere, RES::isweight, DFT::isweight, ResVOI::name, Voi::name, ResVOI::place, Voi::place, resSetmem(), RES::studynr, DFT::studynr, RES::time, DFT::timetype, DFT::timeunit, RES::Vb, RES::voi, DFT::voi, ResVOI::voiname, Voi::voiname, RES::voiNr, DFT::voiNr, DFT::x, DFT::x1, and DFT::x2.

Referenced by dftToResult().

Here is the call graph for this function: