#include "ten.h"
#include "privateTen.h"
Defines | |
#define | DWI_NUM_MAX 256 |
Functions | |
int | tenDWMRIKeyValueParse (Nrrd **ngradP, Nrrd **nbmatP, double *bP, unsigned int **skipP, unsigned int *skipNumP, const Nrrd *ndwi) |
int | tenBMatrixCalc (Nrrd *nbmat, const Nrrd *_ngrad) |
int | tenEMatrixCalc (Nrrd *nemat, const Nrrd *_nbmat, int knownB0) |
void | tenEstimateLinearSingle_d (double *ten, double *B0P, const double *dwi, const double *emat, double *vbuf, unsigned int DD, int knownB0, double thresh, double soft, double b) |
void | tenEstimateLinearSingle_f (float *_ten, float *_B0P, const float *_dwi, const double *emat, double *vbuf, unsigned int DD, int knownB0, float thresh, float soft, float b) |
int | tenEstimateLinear3D (Nrrd *nten, Nrrd **nterrP, Nrrd **nB0P, const Nrrd *const *_ndwi, unsigned int dwiLen, const Nrrd *_nbmat, int knownB0, double thresh, double soft, double b) |
int | tenEstimateLinear4D (Nrrd *nten, Nrrd **nterrP, Nrrd **nB0P, const Nrrd *ndwi, const Nrrd *_nbmat, int knownB0, double thresh, double soft, double b) |
void | tenSimulateSingle_f (float *dwi, float B0, const float *ten, const double *bmat, unsigned int DD, float b) |
int | tenSimulate (Nrrd *ndwi, const Nrrd *nT2, const Nrrd *nten, const Nrrd *_nbmat, double b) |
void | tenCalcOneTensor1 (float tens[7], float chan[7], float thresh, float slope, float b) |
void | tenCalcOneTensor2 (float tens[7], float chan[7], float thresh, float slope, float b) |
int | tenCalcTensor (Nrrd *nout, Nrrd *nin, int version, float thresh, float slope, float b) |
Variables | |
const char * | tenDWMRIModalityKey = "modality" |
const char * | tenDWMRIModalityVal = "DWMRI" |
const char * | tenDWMRINAVal = "n/a" |
const char * | tenDWMRIBValueKey = "DWMRI_b-value" |
const char * | tenDWMRIGradKeyFmt = "DWMRI_gradient_%04u" |
const char * | tenDWMRIBmatKeyFmt = "DWMRI_B-matrix_%04u" |
const char * | tenDWMRINexKeyFmt = "DWMRI_NEX_%04u" |
const char * | tenDWMRISkipKeyFmt = "DWMRI_skip_%04u" |
#define DWI_NUM_MAX 256 |
void tenCalcOneTensor1 | ( | float | tens[7], | |
float | chan[7], | |||
float | thresh, | |||
float | slope, | |||
float | b | |||
) |
void tenCalcOneTensor2 | ( | float | tens[7], | |
float | chan[7], | |||
float | thresh, | |||
float | slope, | |||
float | b | |||
) |
int tenDWMRIKeyValueParse | ( | Nrrd ** | ngradP, | |
Nrrd ** | nbmatP, | |||
double * | bP, | |||
unsigned int ** | skipP, | |||
unsigned int * | skipNumP, | |||
const Nrrd * | ndwi | |||
) |
int tenEstimateLinear3D | ( | Nrrd * | nten, | |
Nrrd ** | nterrP, | |||
Nrrd ** | nB0P, | |||
const Nrrd *const * | _ndwi, | |||
unsigned int | dwiLen, | |||
const Nrrd * | _nbmat, | |||
int | knownB0, | |||
double | thresh, | |||
double | soft, | |||
double | b | |||
) |
int tenEstimateLinear4D | ( | Nrrd * | nten, | |
Nrrd ** | nterrP, | |||
Nrrd ** | nB0P, | |||
const Nrrd * | ndwi, | |||
const Nrrd * | _nbmat, | |||
int | knownB0, | |||
double | thresh, | |||
double | soft, | |||
double | b | |||
) |
void tenEstimateLinearSingle_d | ( | double * | ten, | |
double * | B0P, | |||
const double * | dwi, | |||
const double * | emat, | |||
double * | vbuf, | |||
unsigned int | DD, | |||
int | knownB0, | |||
double | thresh, | |||
double | soft, | |||
double | b | |||
) |
void tenEstimateLinearSingle_f | ( | float * | _ten, | |
float * | _B0P, | |||
const float * | _dwi, | |||
const double * | emat, | |||
double * | vbuf, | |||
unsigned int | DD, | |||
int | knownB0, | |||
float | thresh, | |||
float | soft, | |||
float | b | |||
) |
void tenSimulateSingle_f | ( | float * | dwi, | |
float | B0, | |||
const float * | ten, | |||
const double * | bmat, | |||
unsigned int | DD, | |||
float | b | |||
) |
const char* tenDWMRIBmatKeyFmt = "DWMRI_B-matrix_%04u" |
const char* tenDWMRIBValueKey = "DWMRI_b-value" |
const char* tenDWMRIGradKeyFmt = "DWMRI_gradient_%04u" |
const char* tenDWMRIModalityKey = "modality" |
const char* tenDWMRIModalityVal = "DWMRI" |
const char* tenDWMRINAVal = "n/a" |
const char* tenDWMRINexKeyFmt = "DWMRI_NEX_%04u" |
const char* tenDWMRISkipKeyFmt = "DWMRI_skip_%04u" |