Slicer
5.1
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 | |
bool | CanReadFile (const char *) override |
virtual bool | CanUseOwnBuffer () |
bool | CanWriteFile (const char *) override |
virtual void * | GetOwnBuffer () |
itkNewMacro (Self) | |
itkTypeMacro (MRMLIDImageIO, ImageIOBase) | |
void | Read (void *buffer) override |
void | ReadImageInformation () override |
virtual void | ReadUsingOwnBuffer () |
void | Write (const void *buffer) override |
void | WriteImageInformation () override |
Protected Member Functions | |
MRMLIDImageIO () | |
void | PrintSelf (std::ostream &os, Indent indent) const override |
void | RequestModified (vtkMRMLNode *modifiedObject) |
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 () override | |
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 54 of file itkMRMLIDImageIO.h.
typedef SmartPointer<Self> itk::MRMLIDImageIO::Pointer |
Definition at line 60 of file itkMRMLIDImageIO.h.
Standard class typedefs.
Definition at line 58 of file itkMRMLIDImageIO.h.
typedef ImageIOBase itk::MRMLIDImageIO::Superclass |
Definition at line 59 of file itkMRMLIDImageIO.h.
|
protected |
|
overrideprotected |
|
override |
Determine the file type. Returns true if this ImageIO can read the file specified.
|
virtual |
|
override |
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).
|
overrideprotected |
|
override |
Reads the data from disk into the memory buffer provided.
|
override |
Set the spacing and dimension information for the set filename.
|
virtual |
|
protected |
|
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
|
override |
Writes the data to disk from the memory buffer provided. Make sure that the IORegion has been set properly.
|
override |
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