18 #ifndef itkDCMTKImageIO_h
19 #define itkDCMTKImageIO_h
20 #include "ITKIODCMTKExport.h"
71 m_DImage = UserProvided;
72 m_DicomImageSetByUser =
true;
79 virtual bool CanReadFile(
const char *) ITK_OVERRIDE;
82 virtual
void ReadImageInformation() ITK_OVERRIDE;
85 virtual
void Read(
void *buffer) ITK_OVERRIDE;
91 virtual
bool CanWriteFile(const
char *) ITK_OVERRIDE;
94 virtual
void WriteImageInformation() ITK_OVERRIDE;
98 virtual
void Write(const
void *buffer) ITK_OVERRIDE;
101 void SetLogLevel(LogLevel level);
104 LogLevel GetLogLevel() const;
108 void PrintSelf(std::ostream & os,
Indent indent) const ITK_OVERRIDE;
113 void OpenDicomImage();
116 void ReorderRGBValues(
void *buffer, const
void* data,
unsigned long count,
unsigned int voxel_size);
125 ReorderRGBValues(
void *buffer, const
void* data,
unsigned long count,
unsigned int voxel_size)
127 T* output_buffer =
static_cast<T*
>(buffer);
128 const T** input_buffer =
static_cast<const T**
>(
const_cast<void *
>(data));
129 for (
unsigned long pos = 0; pos < count; ++pos)
131 for (
unsigned int color = 0; color < voxel_size; ++color)
133 *(output_buffer++)=input_buffer[color][pos];
154 #endif // itkDCMTKImageIO_h
Light weight base class for most itk classes.
std::string m_LastFileName
Abstract superclass defines image IO interface.
void SetDicomImagePointer(DicomImage *UserProvided)
bool m_DicomImageSetByUser
SmartPointer< Self > Pointer
Control indentation during Print() invocation.
Read DICOM image file format.
double m_RescaleIntercept