|
virtual const char * | GetClassName () |
|
virtual int | IsA (const char *type) |
|
virtual void | PrintSelf (ostream &os, vtkIndent indent) |
|
virtual int | CanReadFile (const char *fname) |
|
virtual const char * | GetFileExtensions () |
| Valid extensions. More...
|
|
virtual const char * | GetDescriptiveName () |
| A descriptive name for this format. More...
|
|
virtual vtkMatrix4x4 * | GetDirectionCosines () |
| Get the Image Position (Patient) as stored in the DICOM file This is a read-only data member. More...
|
|
virtual vtkMedicalImageProperties * | GetMedicalImageProperties () |
| Get the medical image properties object. More...
|
|
virtual void | SetMedicalImageProperties (vtkMedicalImageProperties *pd) |
|
virtual void | SetFileNames (vtkStringArray *) |
|
virtual vtkStringArray * | GetFileNames () |
|
virtual int | GetLoadOverlays () |
| Specifically request to load the overlay into the gdcm-VTK layer (gdcm always loads them when found). More...
|
|
virtual void | SetLoadOverlays (int) |
|
virtual void | LoadOverlaysOn () |
|
virtual void | LoadOverlaysOff () |
|
virtual int | GetLoadIconImage () |
| Set/Get whether or not to load the Icon as vtkImageData (if found in the DICOM file) More...
|
|
virtual void | SetLoadIconImage (int) |
|
virtual void | LoadIconImageOn () |
|
virtual void | LoadIconImageOff () |
|
virtual int | GetLossyFlag () |
| Set/Get whether or not the image was compressed using a lossy compression algorithm. More...
|
|
virtual void | SetLossyFlag (int) |
|
virtual void | LossyFlagOn () |
|
virtual void | LossyFlagOff () |
|
virtual int | GetNumberOfOverlays () |
| Read only: number of overlays as found in this image (multiple overlays per slice is allowed) Only valid when LoadOverlays is true. More...
|
|
virtual int | GetNumberOfIconImages () |
| Read only: number of icon image (there can only be zero or one icon per file) Only valid when LoadIconImage is true. More...
|
|
vtkImageData * | GetOverlay (int i) |
| Get Overlay/IconImage Remember to ALWAYS use those methods in your code, as the internal number for the output port is not garantee to remain the same, as features are added to the reader. More...
|
|
vtkImageData * | GetIconImage () |
|
virtual int | GetApplyLookupTable () |
| Load image with its associated Lookup Table. More...
|
|
virtual void | SetApplyLookupTable (int) |
|
virtual void | ApplyLookupTableOn () |
|
virtual void | ApplyLookupTableOff () |
|
virtual int | GetApplyYBRToRGB () |
| Load image as YBR. More...
|
|
virtual void | SetApplyYBRToRGB (int) |
|
virtual void | ApplyYBRToRGBOn () |
|
virtual void | ApplyYBRToRGBOff () |
|
virtual int | GetImageFormat () |
| Return VTK_LUMINANCE, VTK_INVERSE_LUMINANCE, VTK_RGB, VTK_RGBA, VTK_LOOKUP_TABLE, VTK_YBR or VTK_CMYK or 0 when ImageFormat is not handled. More...
|
|
virtual int | GetPlanarConfiguration () |
| Return the Planar Configuration. More...
|
|
virtual double * | GetImagePositionPatient () |
| Return the 'raw' information stored in the DICOM file: In case of a series of multiple files, only the first file is considered. More...
|
|
virtual void | GetImagePositionPatient (double &, double &, double &) |
|
virtual void | GetImagePositionPatient (double[3]) |
|
virtual double * | GetImageOrientationPatient () |
|
virtual void | GetImageOrientationPatient (double &, double &, double &, double &, double &, double &) |
|
virtual void | GetImageOrientationPatient (double[6]) |
|
virtual vtkPolyData * | GetCurve () |
| Set/Get the first Curve Data: More...
|
|
virtual void | SetCurve (vtkPolyData *pd) |
|
virtual double | GetShift () |
| \DEPRECATED: Modality LUT Value returned by GetShift/GetScale might be inaccurate since Shift/Scale could be varying along the Series read. More...
|
|
virtual double | GetScale () |
|
read DICOM Image files (Pixel Data)
vtkGDCMImageReader is a source object that reads some DICOM files this reader is single threaded.
- Attention
- upside down as VTK would expect, use this option only if you know what you are doing.
-
expected to provide an ordered list of filenames. No sorting will be applied afterward.
-
from a tag in a 2D DICOM file should be correct, there has been reports that this value can be missing, or incorrect, in which case users are advised to override this value using the return value from gdcm::IPPSorter::GetZSpacing() and set it via vtkImageChangeInformation on the reader itself.
- Todo:
This reader does not handle a series of 3D images, only a single 3D (multi frame) or a list of 2D files are supported for now.
Did not implement SetFilePattern / SetFilePrefix API, move it to protected section for now.
- Bug:
- Overlay are assumed to have the same extent as image. Right now if overlay origin is not 0,0 the overlay will have an offset... Only the very first overlay is loaded at the VTK level, for now (even if there are more than one in the file)
- DataOrigin:
- When the reader is instantiated with FileLowerLeftOn the DataOrigin and Image Position (Patient) are identical. But when FileLowerLeft is Off, we have to reorder the Y-line of the image, and thus the DataOrigin is then translated to the other side of the image.
- Spacing:
- When reading a 3D volume, the spacing along the Z dimension might be negative (so as to respect up-side-down) as specified in the Image Orientation (Patient) tag. When Z-spacing is 0, this means the multi-frame object contains image which do not represent uniform volume.
- Warning
- When using vtkGDCMPolyDataReader in conjonction with vtkGDCMImageReader it is required that FileLowerLeft is set to ON as coordinate system would be inconsistent in between the two data structures.
- Color Space mapping::
- VTK_LUMINANCE <-> MONOCHROME2
- VTK_LUMINANCE_ALPHA <-> Not supported
- VTK_RGB <-> RGB
- VTK_RGBA <-> ARGB (deprecated, DICOM 2008)
- VTK_INVERSE_LUMINANCE <-> MONOCHROME1
- VTK_LOOKUP_TABLE <-> PALETTE COLOR
- VTK_YBR <-> YBR_FULL
- Color Space mapping::
- For detailed information on color space transformation and true lossless transformation see: http://gdcm.sourceforge.net/wiki/index.php/Color_Space_Transformations
- See also
- vtkMedicalImageReader2 vtkMedicalImageProperties vtkGDCMPolyDataReader vtkGDCMImageWriter vtkDICOMImageReader
Definition at line 107 of file vtkGDCMImageReader.h.
virtual int vtkGDCMImageReader::GetImageFormat |
( |
| ) |
|
|
virtual |
Return VTK_LUMINANCE, VTK_INVERSE_LUMINANCE, VTK_RGB, VTK_RGBA, VTK_LOOKUP_TABLE, VTK_YBR or VTK_CMYK or 0 when ImageFormat is not handled.
Warning: For color image, PlanarConfiguration need to be taken into account.
virtual double * vtkGDCMImageReader::GetImagePositionPatient |
( |
| ) |
|
|
virtual |
Return the 'raw' information stored in the DICOM file: In case of a series of multiple files, only the first file is considered.
The Image Orientation (Patient) is garantee to remain the same, and image Image Position (Patient) in other slice can be computed using the ZSpacing (3rd dimension) (0020,0032) DS [87.774866-182.908510\168.629671] # 32, 3 ImagePositionPatient (0020,0037) DS [0.001479\0.999989-0.004376-0.002039-0.004372-0.999988] # 58, 6 ImageOrientationPatient