SIVIC API
0.9.26
|
#include <svkDICOMImageWriter.h>
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) |
svkImageData * | GetImageDataInput (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 svkImageWriter * | New () |
Base Class for DICOM MRI writers.
|
protected |
References svkDICOMImageWriter::useLosslessCompression.
|
protected |
|
protectedvirtual |
|
protectedpure virtual |
Implemented in svkDICOMMRIWriter, and svkDICOMEnhancedMRIWriter.
Referenced by svkDICOMImageWriter::GetScaledPixels().
|
protected |
vtkImageAccumulate doesn't seem to work for doubles, so need custom method for calculating pixel value ranges.
References svkImageData::GetDcmHeader(), svkDICOMWriter::GetImageDataInput(), svkDcmHeader::GetIntValue(), svkDcmHeader::GetPixelDataType(), svkDcmHeader::SIGNED_FLOAT_4, and svkDcmHeader::SIGNED_FLOAT_8.
Referenced by svkDICOMImageWriter::GetShortScaledPixels(), svkDICOMEnhancedMRIWriter::InitPixelData(), and svkDICOMMRIWriter::InitPixelData().
|
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().
|
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 | |||
) |
|
protected |