#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"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) |
| int dftToResult | ( | DFT * | dft, |
| RES * | res, | ||
| char * | status | ||
| ) |
Copy the contents (both header and data) of DFT struct into RES struct.
| dft | Regional data from where necessary information is read |
| res | Pointer to initiated RES struct which will be allocated here |
| status | Pointer 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.
| int res_allocate_with_dft | ( | RES * | res, |
| DFT * | dft | ||
| ) |
Allocate memory for regional results based on information in DFT.
| res | Pointer to initiated RES struct which will be allocated here and filled with ROI names etc |
| dft | Regional 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().
1.8.0