SIVIC API  0.9.26
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
svkDICOMImageWriter Class Referenceabstract

#include <svkDICOMImageWriter.h>

Inheritance diagram for svkDICOMImageWriter:
svkDICOMWriter svkImageWriter svkDICOMEnhancedMRIWriter svkDICOMMRIWriter

Public Member Functions

 vtkTypeMacro (svkDICOMImageWriter, svkDICOMWriter)
 
void UseLosslessCompression ()
 
- Public Member Functions inherited from svkDICOMWriter
 vtkTypeMacro (svkDICOMWriter, svkImageWriter)
 
void SetInput (vtkDataObject *input)
 
void SetInput (int index, vtkDataObject *input)
 
vtkDataObject * GetInput (int port)
 
svkImageDataGetImageDataInput (int port)
 
- Public Member Functions inherited from svkImageWriter
 vtkTypeMacro (svkImageWriter, vtkImageWriter)
 
virtual void Update ()
 
void SetSeriesNumber (int number)
 
void SetSeriesDescription (string description)
 
void SetInstanceNumber (int number)
 
virtual void SetFileName (const char *)
 
virtual void SetFileNameWithExtension (const char *)
 

Protected Member Functions

 svkDICOMImageWriter ()
 
 ~svkDICOMImageWriter ()
 
virtual int FillInputPortInformation (int vtkNotUsed(port), vtkInformation *info)
 
void GetShortScaledPixels (unsigned short *shortPixels, double &slope, double &intercept, int sliceNumber, int volNumber)
 
void GetScaledPixels (unsigned short *shortPixels, double slope, double intercept, int sliceNumber, int volNumber)
 
void GetPixelRange (double &min, double &max, int volNumber)
 
virtual int GetDataLength ()=0
 
- Protected Member Functions inherited from svkDICOMWriter
 svkDICOMWriter ()
 
 ~svkDICOMWriter ()
 
- Protected Member Functions inherited from svkImageWriter
 svkImageWriter ()
 
 ~svkImageWriter ()
 
virtual void SetProvenance ()
 

Protected Attributes

bool useLosslessCompression
 
- Protected Attributes inherited from svkImageWriter
int seriesNumber
 
string seriesDescription
 
int instanceNumber
 

Additional Inherited Members

- Public Types inherited from svkImageWriter
enum  seriesNumStatus { UNDEFINED_SERIES_NUMBER = -1000 }
 
- Static Public Member Functions inherited from svkImageWriter
static svkImageWriterNew ()
 

Detailed Description

Base Class for DICOM MRI writers.

Constructor & Destructor Documentation

svkDICOMImageWriter ( )
protected
~svkDICOMImageWriter ( )
protected

Member Function Documentation

int FillInputPortInformation ( int   vtkNotUsedport,
vtkInformation *  info 
)
protectedvirtual
virtual int GetDataLength ( )
protectedpure virtual
void GetPixelRange ( double &  min,
double &  max,
int  volNumber 
)
protected
void GetScaledPixels ( unsigned short *  shortPixels,
double  slope,
double  intercept,
int  sliceNumber,
int  volNumber 
)
protected

Performs a linear mapping of floating point image values to 16 bit integer dynamic range. Returns a signed short array, together with the intercept and slope of the linear scaling transformation ( shortVal = floatVal * slope + intercept).

References svkDICOMImageWriter::GetDataLength(), svkImageData::GetDcmHeader(), svkDICOMWriter::GetImageDataInput(), svkDcmHeader::GetPixelDataType(), svkUtils::NearestInt(), svkDcmHeader::SIGNED_FLOAT_4, and svkDcmHeader::SIGNED_FLOAT_8.

Referenced by svkDICOMImageWriter::GetShortScaledPixels(), and svkDICOMEnhancedMRIWriter::InitPixelData().

void GetShortScaledPixels ( unsigned short *  shortPixels,
double &  slope,
double &  intercept,
int  sliceNumber,
int  volNumber 
)
protected

Performs a linear mapping of floating point image values to 16 bit integer dynamic range. Returns a signed short array, together with the intercept and slope of the linear scaling transformation ( shortVal = floatVal * slope + intercept).

References svkDICOMImageWriter::GetPixelRange(), and svkDICOMImageWriter::GetScaledPixels().

Referenced by svkDICOMMRIWriter::InitPixelData().

void UseLosslessCompression ( )

Use lossless compression transfer syntax.

References svkDICOMImageWriter::useLosslessCompression.

vtkTypeMacro ( svkDICOMImageWriter  ,
svkDICOMWriter   
)

Member Data Documentation

bool useLosslessCompression
protected

The documentation for this class was generated from the following files: