vtkPhilipsRECReader Class Reference

#include <vtkPhilipsRECReader.h>

Inheritance diagram for vtkPhilipsRECReader:

Inheritance graph
[legend]
Collaboration diagram for vtkPhilipsRECReader:

Collaboration graph
[legend]
List of all members.

Detailed Description

read Philips PAR/REC image files

vtkPhilipsRECReader is a source object that reads Philips PAR/REC image files. The floating point value and display value of the data read in may be calculated using the following formulas taken from the PAR file:

# === PIXEL VALUES ============================================================= # PV = pixel value in REC file, FP = floating point value, DV = displayed value on console # RS = rescale slope, RI = rescale intercept, SS = scale slope # DV = PV * RS + RI FP = DV / (RS * SS)

See also:
vtkImageReader2

Definition at line 57 of file vtkPhilipsRECReader.h.

Public Member Functions

 vtkTypeRevisionMacro (vtkPhilipsRECReader, vtkMedicalImageReader2)
virtual void PrintSelf (ostream &os, vtkIndent indent)
virtual int CanReadFile (const char *fname)
void * GetPARFileParameters ()
virtual int GetNumberOfImageBlocks ()
int GetSliceIndex (int index)
int GetNumberOfImageTypes ()
int GetNumberOfScanningSequences ()
float GetRescaleSlope (int image_type, int scanning_sequence)
float GetRescaleIntercept (int image_type, int scanning_sequence)
float GetScaleSlope (int image_type, int scanning_sequence)
int GetMaximumNumberOfGradientOrientations ()
float GetDiffusionOrientationAP (int diffusion_num)
float GetDiffusionOrientationFH (int diffusion_num)
float GetDiffusionOrientationRL (int diffusion_num)
float GetDiffusionBValue (int diffusion_num)
virtual void ComputeInternalFileName (int slice)
virtual const char * GetFileExtensions ()
virtual const char * GetDescriptiveName ()
virtual void SetSortByBlock (int)
virtual int GetSortByBlock ()
virtual void SortByBlockOn ()
virtual void SortByBlockOff ()
virtual int * GetImageTypes ()
virtual void GetImageTypes (int data[8])
virtual int * GetScanningSequences ()
virtual void GetScanningSequences (int data[8])

Static Public Member Functions

static vtkPhilipsRECReaderNew ()

Protected Member Functions

 vtkPhilipsRECReader ()
 ~vtkPhilipsRECReader ()
virtual void ExecuteInformation ()
virtual void ExecuteData (vtkDataObject *out)

Protected Attributes

par_parameterPARFileParameters
int SortByBlock
int ImageTypes [PAR_DEFAULT_IMAGE_TYPES_SIZE]
int ScanningSequences [PAR_DEFAULT_SCAN_SEQUENCE_SIZE]
vtkPhilipsRECReaderSliceIndexType * SliceIndex
vtkPhilipsRECReaderRescaleValuesType * RescaleValues
vtkPhilipsRECReaderDiffusionGradientOrientation * DiffusionGradientOrientations
vtkPhilipsRECReaderDiffusionBValue * DiffusionBValues


Constructor & Destructor Documentation

vtkPhilipsRECReader::vtkPhilipsRECReader (  )  [protected]

vtkPhilipsRECReader::~vtkPhilipsRECReader (  )  [protected]


Member Function Documentation

static vtkPhilipsRECReader* vtkPhilipsRECReader::New (  )  [static]

Reimplemented from vtkMedicalImageReader2.

vtkPhilipsRECReader::vtkTypeRevisionMacro ( vtkPhilipsRECReader  ,
vtkMedicalImageReader2   
)

virtual void vtkPhilipsRECReader::PrintSelf ( ostream &  os,
vtkIndent  indent 
) [virtual]

Reimplemented from vtkMedicalImageReader2.

virtual int vtkPhilipsRECReader::CanReadFile ( const char *  fname  )  [virtual]

virtual const char* vtkPhilipsRECReader::GetFileExtensions (  )  [inline, virtual]

Valid extentsions

Reimplemented from vtkImageReader2.

Definition at line 68 of file vtkPhilipsRECReader.h.

virtual const char* vtkPhilipsRECReader::GetDescriptiveName (  )  [inline, virtual]

A descriptive name for this format

Reimplemented from vtkImageReader2.

Definition at line 76 of file vtkPhilipsRECReader.h.

void* vtkPhilipsRECReader::GetPARFileParameters (  )  [inline]

Get the PAR file parameter struct (set only if CanReadFile has been called or an Update function).

Definition at line 84 of file vtkPhilipsRECReader.h.

virtual void vtkPhilipsRECReader::SetSortByBlock ( int   )  [virtual]

Set/Get whether to sort multiple images by image blocks or by slices (default).

virtual int vtkPhilipsRECReader::GetSortByBlock (  )  [virtual]

Set/Get whether to sort multiple images by image blocks or by slices (default).

virtual void vtkPhilipsRECReader::SortByBlockOn (  )  [virtual]

Set/Get whether to sort multiple images by image blocks or by slices (default).

virtual void vtkPhilipsRECReader::SortByBlockOff (  )  [virtual]

Set/Get whether to sort multiple images by image blocks or by slices (default).

virtual int vtkPhilipsRECReader::GetNumberOfImageBlocks (  )  [inline, virtual]

Returns the number of image blocks stored in the REC file.

Definition at line 96 of file vtkPhilipsRECReader.h.

int vtkPhilipsRECReader::GetSliceIndex ( int  index  ) 

Returns the slice index based on the desired arrangement (see SetSortByBlockOn/Off).

int vtkPhilipsRECReader::GetNumberOfImageTypes (  )  [inline]

Returns the number of image types stored in the REC file.

Definition at line 104 of file vtkPhilipsRECReader.h.

virtual int* vtkPhilipsRECReader::GetImageTypes (  )  [virtual]

Returns the image types array. Non-negative values in the array represent valid image types that exist in the REC file. Use GetNumberOfImageTypes() to determine the total number of image types in the REC file.

virtual void vtkPhilipsRECReader::GetImageTypes ( int  data[8]  )  [virtual]

Returns the image types array. Non-negative values in the array represent valid image types that exist in the REC file. Use GetNumberOfImageTypes() to determine the total number of image types in the REC file.

int vtkPhilipsRECReader::GetNumberOfScanningSequences (  )  [inline]

Returns the number of scanning sequences stored in the REC file.

Definition at line 116 of file vtkPhilipsRECReader.h.

virtual int* vtkPhilipsRECReader::GetScanningSequences (  )  [virtual]

Returns the scanning sequences array. Non-negative values in the array represent valid image types that exist in the REC file. Use GetNumberOfScanningSequences() to determine the total number of scanning sequences in the REC file.

virtual void vtkPhilipsRECReader::GetScanningSequences ( int  data[8]  )  [virtual]

Returns the scanning sequences array. Non-negative values in the array represent valid image types that exist in the REC file. Use GetNumberOfScanningSequences() to determine the total number of scanning sequences in the REC file.

float vtkPhilipsRECReader::GetRescaleSlope ( int  image_type,
int  scanning_sequence 
)

Returns the rescale slope given the image type and scanning sequence Non-negative valid image types and scanning sequences are stored in the image_types par_parameter and scanning_sequences par_parameter.

float vtkPhilipsRECReader::GetRescaleIntercept ( int  image_type,
int  scanning_sequence 
)

Returns the rescale intercept given the image type and scanning sequence Non-negative valid image types and scanning sequences are stored in the image_types par_parameter and scanning_sequences par_parameter.

float vtkPhilipsRECReader::GetScaleSlope ( int  image_type,
int  scanning_sequence 
)

Returns the scale slope given given the image type and scanning sequence Non-negative valid image types and scanning sequences are stored in the image_types par_parameter and scanning_sequences par_parameter.

int vtkPhilipsRECReader::GetMaximumNumberOfGradientOrientations (  )  [inline]

Returns the maximum number of gradient orientation images stored in the REC file (max_num_grad_orient value from par_parameter).

Definition at line 148 of file vtkPhilipsRECReader.h.

float vtkPhilipsRECReader::GetDiffusionOrientationAP ( int  diffusion_num  ) 

Returns the diffusion orientation in the ap direction for the diffusion direction at diffusion_num. The number of diffusion directions is determined using the max_num_grad_orient value in par_parameter.

float vtkPhilipsRECReader::GetDiffusionOrientationFH ( int  diffusion_num  ) 

Returns the diffusion orientation in the fh direction for the diffusion direction at diffusion_num. The number of diffusion directions is determined using the max_num_grad_orient value in par_parameter.

float vtkPhilipsRECReader::GetDiffusionOrientationRL ( int  diffusion_num  ) 

Returns the diffusion orientation in the rl direction for the diffusion direction at diffusion_num. The number of diffusion directions is determined using the max_num_grad_orient value in par_parameter.

float vtkPhilipsRECReader::GetDiffusionBValue ( int  diffusion_num  ) 

Returns the diffusion B value for the diffusion direction at diffusion_num. The number of diffusion directions is determined using the max_num_grad_orient value in par_parameter.

virtual void vtkPhilipsRECReader::ComputeInternalFileName ( int  slice  )  [virtual]

Compute the internal file name.

Reimplemented from vtkImageReader2.

virtual void vtkPhilipsRECReader::ExecuteInformation (  )  [protected, virtual]

Reimplemented from vtkImageReader2.

virtual void vtkPhilipsRECReader::ExecuteData ( vtkDataObject out  )  [protected, virtual]

Reimplemented from vtkImageReader2.


Member Data Documentation

par_parameter* vtkPhilipsRECReader::PARFileParameters [protected]

Definition at line 184 of file vtkPhilipsRECReader.h.

int vtkPhilipsRECReader::SortByBlock [protected]

Definition at line 185 of file vtkPhilipsRECReader.h.

int vtkPhilipsRECReader::ImageTypes[PAR_DEFAULT_IMAGE_TYPES_SIZE] [protected]

Definition at line 186 of file vtkPhilipsRECReader.h.

int vtkPhilipsRECReader::ScanningSequences[PAR_DEFAULT_SCAN_SEQUENCE_SIZE] [protected]

Definition at line 187 of file vtkPhilipsRECReader.h.

vtkPhilipsRECReaderSliceIndexType* vtkPhilipsRECReader::SliceIndex [protected]

Definition at line 188 of file vtkPhilipsRECReader.h.

vtkPhilipsRECReaderRescaleValuesType* vtkPhilipsRECReader::RescaleValues [protected]

Definition at line 189 of file vtkPhilipsRECReader.h.

vtkPhilipsRECReaderDiffusionGradientOrientation* vtkPhilipsRECReader::DiffusionGradientOrientations [protected]

Definition at line 190 of file vtkPhilipsRECReader.h.

vtkPhilipsRECReaderDiffusionBValue* vtkPhilipsRECReader::DiffusionBValues [protected]

Definition at line 191 of file vtkPhilipsRECReader.h.


The documentation for this class was generated from the following file:
Generated on Tue May 12 14:53:45 2009 for vtkCNMRRLibrary by  doxygen 1.4.7