write DICOM files
More...
#include <vtkGDCMImageWriter.h>
Inherits vtkImageWriter.
write DICOM files
vtkGDCMImageWriter is a sink object that write DICOM files this writer is single threaded (see vtkGDCMThreadedImageReader2 for multi-thread)
- Warning
- only if ImageFormat is set to VTK_LOOKUP_TABLE
- Attention
- but instead a list of filenames: see SetFileNames and class gdcm::FilenameGenerator
- Warning
- You need to specify the correct ImageFormat (taken from the reader) You need to explicitly specify the DirectionCosines (taken from the reader) Since VTK 5.4 vtkMedicalImageProperties has its own DirectionCosine (no 's') user need to make sure the vtkMatrix4x4 is compatible with the 6-vector DirectionCosine.
- Attention
- as 2D slice, therefore the shift/scale operation might not be optimized for all slices. This is not recommended for image with a large dynamic range.
- See also
- vtkImageWriter vtkMedicalImageProperties vtkGDCMImageReader
Definition at line 52 of file vtkGDCMImageWriter.h.
◆ Superclass
◆ CompressionTypes
Enumerator |
---|
NO_COMPRESSION | |
JPEG_COMPRESSION | |
JPEG2000_COMPRESSION | |
JPEGLS_COMPRESSION | |
RLE_COMPRESSION | |
Definition at line 157 of file vtkGDCMImageWriter.h.
◆ vtkGDCMImageWriter()
vtkGDCMImageWriter::vtkGDCMImageWriter |
( |
| ) |
|
|
protected |
◆ ~vtkGDCMImageWriter()
vtkGDCMImageWriter::~vtkGDCMImageWriter |
( |
| ) |
|
|
protected |
◆ New()
◆ GetClassName()
virtual const char* vtkGDCMImageWriter::GetClassName |
( |
| ) |
|
|
virtual |
◆ IsTypeOf()
static int vtkGDCMImageWriter::IsTypeOf |
( |
const char * |
type | ) |
|
|
static |
◆ IsA()
virtual int vtkGDCMImageWriter::IsA |
( |
const char * |
type | ) |
|
|
virtual |
◆ SafeDownCast()
◆ PrintSelf()
virtual void vtkGDCMImageWriter::PrintSelf |
( |
ostream & |
os, |
|
|
vtkIndent |
indent |
|
) |
| |
|
virtual |
◆ GetMedicalImageProperties()
virtual vtkMedicalImageProperties* vtkGDCMImageWriter::GetMedicalImageProperties |
( |
| ) |
|
|
virtual |
Pass in the vtkmedicalimageproperties object for medical information to be mapped to DICOM attributes.
◆ SetMedicalImageProperties()
virtual void vtkGDCMImageWriter::SetMedicalImageProperties |
( |
vtkMedicalImageProperties * |
| ) |
|
|
virtual |
◆ SetFileNames()
virtual void vtkGDCMImageWriter::SetFileNames |
( |
vtkStringArray * |
| ) |
|
|
virtual |
Pass in the list of filename to be used to write out the DICOM file(s)
◆ GetFileNames()
virtual vtkStringArray* vtkGDCMImageWriter::GetFileNames |
( |
| ) |
|
|
virtual |
◆ GetLossyFlag()
virtual int vtkGDCMImageWriter::GetLossyFlag |
( |
| ) |
|
|
virtual |
Set/Get whether or not the image was compressed using a lossy compression algorithm.
◆ SetLossyFlag()
virtual void vtkGDCMImageWriter::SetLossyFlag |
( |
int |
| ) |
|
|
virtual |
◆ LossyFlagOn()
virtual void vtkGDCMImageWriter::LossyFlagOn |
( |
| ) |
|
|
virtual |
◆ LossyFlagOff()
virtual void vtkGDCMImageWriter::LossyFlagOff |
( |
| ) |
|
|
virtual |
◆ Write()
virtual void vtkGDCMImageWriter::Write |
( |
| ) |
|
|
virtual |
◆ GetFileExtensions()
virtual const char* vtkGDCMImageWriter::GetFileExtensions |
( |
| ) |
|
|
inlinevirtual |
◆ GetDescriptiveName()
virtual const char* vtkGDCMImageWriter::GetDescriptiveName |
( |
| ) |
|
|
inlinevirtual |
◆ SetDirectionCosines()
virtual void vtkGDCMImageWriter::SetDirectionCosines |
( |
vtkMatrix4x4 * |
matrix | ) |
|
|
virtual |
You need to manually specify the direction the image is in to write a valid DICOM file since vtkImageData do not contains one (eg.
MR Image Storage, CT Image Storage...)
◆ GetDirectionCosines()
virtual vtkMatrix4x4* vtkGDCMImageWriter::GetDirectionCosines |
( |
| ) |
|
|
virtual |
◆ SetDirectionCosinesFromImageOrientationPatient()
virtual void vtkGDCMImageWriter::SetDirectionCosinesFromImageOrientationPatient |
( |
const double |
dircos[6] | ) |
|
|
virtual |
◆ SetShift()
virtual void vtkGDCMImageWriter::SetShift |
( |
double |
| ) |
|
|
virtual |
◆ GetShift()
virtual double vtkGDCMImageWriter::GetShift |
( |
| ) |
|
|
virtual |
◆ SetScale()
virtual void vtkGDCMImageWriter::SetScale |
( |
double |
| ) |
|
|
virtual |
◆ GetScale()
virtual double vtkGDCMImageWriter::GetScale |
( |
| ) |
|
|
virtual |
◆ GetImageFormat()
virtual int vtkGDCMImageWriter::GetImageFormat |
( |
| ) |
|
|
virtual |
◆ SetImageFormat()
virtual void vtkGDCMImageWriter::SetImageFormat |
( |
int |
| ) |
|
|
virtual |
◆ FileLowerLeftOn()
virtual void vtkGDCMImageWriter::FileLowerLeftOn |
( |
| ) |
|
|
virtual |
Set/Get whether the data comes from the file starting in the lower left corner or upper left corner.
◆ FileLowerLeftOff()
virtual void vtkGDCMImageWriter::FileLowerLeftOff |
( |
| ) |
|
|
virtual |
◆ GetFileLowerLeft()
virtual int vtkGDCMImageWriter::GetFileLowerLeft |
( |
| ) |
|
|
virtual |
◆ SetFileLowerLeft()
virtual void vtkGDCMImageWriter::SetFileLowerLeft |
( |
int |
| ) |
|
|
virtual |
◆ SetPlanarConfiguration()
virtual void vtkGDCMImageWriter::SetPlanarConfiguration |
( |
int |
| ) |
|
|
virtual |
For color image (more than a single comp) you can specify the planar configuration you prefer.
◆ GetPlanarConfiguration()
virtual int vtkGDCMImageWriter::GetPlanarConfiguration |
( |
| ) |
|
|
virtual |
◆ SetStudyUID()
virtual void vtkGDCMImageWriter::SetStudyUID |
( |
const char * |
| ) |
|
|
virtual |
Set/Get specific StudyUID / SeriesUID.
◆ GetStudyUID()
virtual char* vtkGDCMImageWriter::GetStudyUID |
( |
| ) |
|
|
virtual |
◆ SetSeriesUID()
virtual void vtkGDCMImageWriter::SetSeriesUID |
( |
const char * |
| ) |
|
|
virtual |
◆ GetSeriesUID()
virtual char* vtkGDCMImageWriter::GetSeriesUID |
( |
| ) |
|
|
virtual |
◆ SetCompressionType()
virtual void vtkGDCMImageWriter::SetCompressionType |
( |
int |
| ) |
|
|
virtual |
◆ GetCompressionType()
virtual int vtkGDCMImageWriter::GetCompressionType |
( |
| ) |
|
|
virtual |
◆ WriteSlice()
void vtkGDCMImageWriter::WriteSlice |
( |
vtkImageData * |
data | ) |
|
|
protected |
◆ WriteGDCMData()
int vtkGDCMImageWriter::WriteGDCMData |
( |
vtkImageData * |
data, |
|
|
int |
timeStep |
|
) |
| |
|
protected |
◆ GetFileName()
virtual char* vtkGDCMImageWriter::GetFileName |
( |
| ) |
|
|
protectedvirtual |
The documentation for this class was generated from the following file: