SIVIC API
0.9.26
|
#include <svkDICOMSCWriter.h>
Public Member Functions | |
vtkTypeMacro (svkDICOMSCWriter, svkImageWriter) | |
void | SetInput (vtkDataObject *input) |
void | SetInput (int index, vtkDataObject *input) |
vtkDataObject * | GetInput (int port) |
svkImageData * | GetImageDataInput (int port) |
virtual void | Write () |
void | CreateNewSeries () |
void | SetOutputToGrayscale (bool isOutputGray) |
void | SetUseInstanceNumber (bool useInstanceNumber) |
Set to true if you want to use the instance number as the file number. More... | |
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 *) |
Static Public Member Functions | |
static svkDICOMSCWriter * | New () |
static string | GetFilePattern (svkImageData *imageData) |
Static Public Member Functions inherited from svkImageWriter | |
static svkImageWriter * | New () |
Protected Member Functions | |
svkDICOMSCWriter () | |
~svkDICOMSCWriter () | |
virtual int | FillInputPortInformation (int vtkNotUsed(port), vtkInformation *info) |
Protected Member Functions inherited from svkImageWriter | |
svkImageWriter () | |
~svkImageWriter () | |
virtual void | SetProvenance () |
Additional Inherited Members | |
Public Types inherited from svkImageWriter | |
enum | seriesNumStatus { UNDEFINED_SERIES_NUMBER = -1000 } |
Protected Attributes inherited from svkImageWriter | |
int | seriesNumber |
string | seriesDescription |
int | instanceNumber |
Concrete svkImageWriter instance for creating single frame DICOM Secondary Capture SOP class output (SOPClassUID: 1.2.840.10008.5.1.4.1.1.7). The DICOM SC header is generated from scratch with the following elements copied from the svkDcmHeader of the input svkImageData object: PatientID, StudyDate, StudyID, PatientName, StudyInstanceUID. All instances have the same "unique" SeriesInstanceUID, generated from scratch. RGB output is the default. Grayscale output may be specified, in which case the input image is mapped via vtkImageLuminance to a gray scale output, with PhotometricInterpretation set at MONOCHROME2 (highest intensity bright).
|
protected |
References svkImageWriter::instanceNumber, and svkImageWriter::seriesNumber.
|
protected |
void CreateNewSeries | ( | ) |
Not yet implemented. Intended to force new SeriesInstanceUID generation of for use when writer instance will create multiple DICOM SC output series.
|
protectedvirtual |
|
static |
svkImageData * GetImageDataInput | ( | int | port | ) |
References svkDICOMSCWriter::GetInput().
Referenced by svkDICOMSCWriter::Write().
vtkDataObject * GetInput | ( | int | port | ) |
Referenced by svkDICOMSCWriter::GetImageDataInput().
|
static |
Referenced by svkImageWriterFactory::CreateImageWriter().
void SetInput | ( | vtkDataObject * | input | ) |
Set the input svkImageDataObject, which will be used to set the DICOM PixelData and also populate Exam/Patient specific DICOM attributes for the output data.
void SetInput | ( | int | index, |
vtkDataObject * | input | ||
) |
void SetOutputToGrayscale | ( | bool | isOutputGray | ) |
If set to true, results in conversion of input pixels to grayscale for DICOM PixelDataSets, and also sets ImagePixelModule attribures correctly for grayscale output. The default output is RGB.
void SetUseInstanceNumber | ( | bool | useInstanceNumber | ) |
Set to true if you want to use the instance number as the file number.
Set to true if you want to use the instance number as the file number.
vtkTypeMacro | ( | svkDICOMSCWriter | , |
svkImageWriter | |||
) |
|
virtual |
The main method which triggers the writer to write DICOM SC files.
References svkDICOMSCWriter::GetImageDataInput(), svkDcmHeader::GetIntValue(), svkDcmHeader::InsertUniqueUID(), svkImageWriter::instanceNumber, svkDcmHeader::SetValue(), and svkImageWriter::Update().