Slicer
4.10
Slicer is a multi-platform, free and open source software package for visualization and medical image computing
|
ImageIO object for reading and writing imaegs from a MRML scene. More...
#include <Libs/MRML/IDImageIO/itkMRMLIDImageIO.h>
Public Types | |
typedef SmartPointer< Self > | Pointer |
typedef MRMLIDImageIO | Self |
typedef ImageIOBase | Superclass |
Public Member Functions | |
virtual bool | CanReadFile (const char *) ITK_OVERRIDE |
virtual bool | CanUseOwnBuffer () |
virtual bool | CanWriteFile (const char *) ITK_OVERRIDE |
virtual void * | GetOwnBuffer () |
itkNewMacro (Self) | |
itkTypeMacro (MRMLIDImageIO, ImageIOBase) | |
virtual void | Read (void *buffer) ITK_OVERRIDE |
virtual void | ReadImageInformation () ITK_OVERRIDE |
virtual void | ReadUsingOwnBuffer () |
virtual void | Write (const void *buffer) ITK_OVERRIDE |
virtual void | WriteImageInformation () ITK_OVERRIDE |
Protected Member Functions | |
MRMLIDImageIO () | |
void | PrintSelf (std::ostream &os, Indent indent) const ITK_OVERRIDE |
void | SetDTDictionaryValues (MetaDataDictionary &dict, vtkMRMLDiffusionImageVolumeNode *di) |
void | SetDTNodeValues (vtkMRMLDiffusionImageVolumeNode *di, MetaDataDictionary &dict) |
void | SetDWDictionaryValues (MetaDataDictionary &dict, vtkMRMLDiffusionWeightedVolumeNode *dw) |
void | SetDWNodeValues (vtkMRMLDiffusionWeightedVolumeNode *dw, MetaDataDictionary &dict) |
virtual void | WriteImageInformation (vtkMRMLVolumeNode *, vtkImageData *, int *scalarType, int *numberOfScalarComponents) |
~MRMLIDImageIO () | |
ImageIO object for reading and writing imaegs from a MRML scene.
MRMLIDImageIO is an ImageIO object that allows you to retrieve/store an image in a MRML node using a standard ITK ImageFileReader or ImageFileWriter. THis allows a plugin to be written once and compiled into a shared object module that Slicer can communicate with directly or compiled into a command line program that can be executed outside of Slicer. In the former, the plugin will be provided with a MRML ID for the "file" to read/write and the ImageFileReader/Writer will use the MRMLIDImageIO object to perform "IO" operations directly on a MRML scene. In the latter, the plugin will be provided with a filename for its inputs/outputs and other ITK ImageIO objects will be employed by the ImageFileReader/ImageFileWriter to read and write the data.
The "filename" specified will look like a URI: slicer:<scene id>#<node id>
- local slicer slicer://<hostname>/<scene id>#<node id>
- remote slicer
This code was written on the Massachusettes Turnpike with extreme glare on the LCD.
Definition at line 53 of file itkMRMLIDImageIO.h.
typedef SmartPointer<Self> itk::MRMLIDImageIO::Pointer |
Definition at line 59 of file itkMRMLIDImageIO.h.
Standard class typedefs.
Definition at line 57 of file itkMRMLIDImageIO.h.
typedef ImageIOBase itk::MRMLIDImageIO::Superclass |
Definition at line 58 of file itkMRMLIDImageIO.h.
|
protected |
|
protected |
|
virtual |
Determine the file type. Returns true if this ImageIO can read the file specified.
|
virtual |
|
virtual |
Determine the file type. Returns true if this ImageIO can read the file specified.
|
virtual |
itk::MRMLIDImageIO::itkNewMacro | ( | Self | ) |
Method for creation through the object factory.
itk::MRMLIDImageIO::itkTypeMacro | ( | MRMLIDImageIO | , |
ImageIOBase | |||
) |
Run-time type information (and related methods).
|
protected |
|
virtual |
Reads the data from disk into the memory buffer provided.
|
virtual |
Set the spacing and dimension information for the set filename.
|
virtual |
|
protected |
Take information in a Slicer node and transfer it the MetaDataDictionary in ITK
|
protected |
Take information from the MetaDataDictionary that is needed to transfer this volume to a Slicer node
|
protected |
Take information in a Slicer node and transfer it the MetaDataDictionary in ITK
|
protected |
Take information from the MetaDataDictionary that is needed to transfer this volume to a Slicer node
|
virtual |
Writes the data to disk from the memory buffer provided. Make sure that the IORegion has been set properly.
|
virtual |
Writes the header of the image. Assumes SetFileName has been called with a valid file name.
|
protectedvirtual |
Write the image information to the node and specified image