Medical Imaging Interaction Toolkit
2023.12.00
Medical Imaging Interaction Toolkit
|
Writer class for ToF images. More...
#include <mitkToFImageWriter.h>
Public Types | |
enum | ToFImageType { ToFImageType3D, ToFImageType2DPlusT } |
Public Member Functions | |
ToFImageWriter () | |
~ToFImageWriter () override | |
mitkClassMacroItkParent (ToFImageWriter, itk::Object) | |
Pointer | Clone () const |
virtual std::string | GetDistanceImageFileName () |
virtual std::string | GetAmplitudeImageFileName () |
virtual std::string | GetIntensityImageFileName () |
virtual std::string | GetRGBImageFileName () |
virtual std::string | GetExtension () |
virtual int | GetToFCaptureWidth () |
virtual int | GetToFCaptureHeight () |
virtual int | GetRGBCaptureWidth () |
virtual int | GetRGBCaptureHeight () |
virtual bool | GetDistanceImageSelected () |
virtual bool | GetAmplitudeImageSelected () |
virtual bool | GetIntensityImageSelected () |
virtual bool | GetRGBImageSelected () |
virtual void | SetDistanceImageFileName (std::string _arg) |
virtual void | SetAmplitudeImageFileName (std::string _arg) |
virtual void | SetIntensityImageFileName (std::string _arg) |
virtual void | SetRGBImageFileName (std::string _arg) |
virtual void | SetExtension (std::string _arg) |
virtual void | SetToFCaptureWidth (int _arg) |
virtual void | SetToFCaptureHeight (int _arg) |
virtual void | SetRGBCaptureWidth (int _arg) |
virtual void | SetRGBCaptureHeight (int _arg) |
virtual void | SetDistanceImageSelected (bool _arg) |
virtual void | SetAmplitudeImageSelected (bool _arg) |
virtual void | SetIntensityImageSelected (bool _arg) |
virtual void | SetRGBImageSelected (bool _arg) |
ToFImageWriter::ToFImageType | GetToFImageType () |
Get the type of image to be written. More... | |
void | SetToFImageType (ToFImageWriter::ToFImageType toFImageType) |
Set the type of image to be written. More... | |
virtual void | Open () |
Open file(s) for writing. More... | |
virtual void | Close () |
Close file(s) add header and write. More... | |
virtual void | Add (float *, float *, float *, unsigned char *=nullptr) |
Add new data to file. More... | |
Static Public Member Functions | |
static Pointer | New () |
Protected Member Functions | |
void | CheckForFileExtension (std::string &fileName) |
Checks file name if file extension exists. If not an error message is returned. More... | |
Protected Attributes | |
std::string | m_Extension |
file extension used for saving images More... | |
std::string | m_DistanceImageFileName |
file name for saving the distance image More... | |
std::string | m_AmplitudeImageFileName |
file name for saving the amplitude image More... | |
std::string | m_IntensityImageFileName |
file name for saving the intensity image More... | |
std::string | m_RGBImageFileName |
file name for saving the RGB image More... | |
int | m_NumOfFrames |
number of frames written to the image. Used for pic header. More... | |
bool | m_DistanceImageSelected |
flag indicating if distance image should be recorded More... | |
bool | m_AmplitudeImageSelected |
flag indicating if amplitude image should be recorded More... | |
bool | m_IntensityImageSelected |
flag indicating if intensity image should be recorded More... | |
bool | m_RGBImageSelected |
flag indicating if RGB image should be recorded More... | |
int | m_ToFCaptureWidth |
width (x-dimension) of the images to record. More... | |
int | m_ToFCaptureHeight |
height (y-dimension) of the images to record. More... | |
int | m_RGBCaptureWidth |
width (x-dimension) of the images to record. More... | |
int | m_RGBCaptureHeight |
height (y-dimension) of the images to record. More... | |
int | m_ToFPixelNumber |
number of pixels (widht*height) of the images to record More... | |
int | m_ToFImageSizeInBytes |
size of the image to save in bytes More... | |
int | m_RGBPixelNumber |
number of pixels (widht*height) of the images to record More... | |
int | m_RGBImageSizeInBytes |
size of the image to save in bytes More... | |
ToFImageWriter::ToFImageType | m_ToFImageType |
type of image to be recorded: ToFImageType3D (0) or ToFImageType2DPlusT (1) More... | |
Writer class for ToF images.
This writer class allows streaming of ToF data into a file. Image information is included in the header of the nrrd file. Writer can simultaneously save "distance", "intensity" and "amplitude" image. Images can be written as 3D volume (ToFImageType::ToFImageType3D) or temporal image stack (ToFImageType::ToFImageType2DPlusT)
Definition at line 34 of file mitkToFImageWriter.h.
Enumerator | |
---|---|
ToFImageType3D | |
ToFImageType2DPlusT |
Definition at line 76 of file mitkToFImageWriter.h.
mitk::ToFImageWriter::ToFImageWriter | ( | ) |
|
override |
|
inlinevirtual |
Add new data to file.
Reimplemented in mitk::ToFImageCsvWriter, and mitk::ToFNrrdImageWriter.
Definition at line 98 of file mitkToFImageWriter.h.
|
protected |
Checks file name if file extension exists. If not an error message is returned.
Pointer mitk::ToFImageWriter::Clone | ( | ) | const |
|
inlinevirtual |
Close file(s) add header and write.
Reimplemented in mitk::ToFImageCsvWriter, and mitk::ToFNrrdImageWriter.
Definition at line 94 of file mitkToFImageWriter.h.
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
ToFImageWriter::ToFImageType mitk::ToFImageWriter::GetToFImageType | ( | ) |
Get the type of image to be written.
mitk::ToFImageWriter::mitkClassMacroItkParent | ( | ToFImageWriter | , |
itk::Object | |||
) |
|
static |
|
inlinevirtual |
Open file(s) for writing.
Reimplemented in mitk::ToFImageCsvWriter, and mitk::ToFNrrdImageWriter.
Definition at line 90 of file mitkToFImageWriter.h.
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
void mitk::ToFImageWriter::SetToFImageType | ( | ToFImageWriter::ToFImageType | toFImageType | ) |
Set the type of image to be written.
toFImageType | type of the ToF image: ToFImageType3D (0) or ToFImageType2DPlusT (1) |
|
protected |
file name for saving the amplitude image
Definition at line 110 of file mitkToFImageWriter.h.
|
protected |
flag indicating if amplitude image should be recorded
Definition at line 116 of file mitkToFImageWriter.h.
|
protected |
file name for saving the distance image
Definition at line 109 of file mitkToFImageWriter.h.
|
protected |
flag indicating if distance image should be recorded
Definition at line 115 of file mitkToFImageWriter.h.
|
protected |
file extension used for saving images
Definition at line 108 of file mitkToFImageWriter.h.
|
protected |
file name for saving the intensity image
Definition at line 111 of file mitkToFImageWriter.h.
|
protected |
flag indicating if intensity image should be recorded
Definition at line 117 of file mitkToFImageWriter.h.
|
protected |
number of frames written to the image. Used for pic header.
Definition at line 114 of file mitkToFImageWriter.h.
|
protected |
height (y-dimension) of the images to record.
Definition at line 122 of file mitkToFImageWriter.h.
|
protected |
width (x-dimension) of the images to record.
Definition at line 121 of file mitkToFImageWriter.h.
|
protected |
file name for saving the RGB image
Definition at line 112 of file mitkToFImageWriter.h.
|
protected |
flag indicating if RGB image should be recorded
Definition at line 118 of file mitkToFImageWriter.h.
|
protected |
size of the image to save in bytes
Definition at line 126 of file mitkToFImageWriter.h.
|
protected |
number of pixels (widht*height) of the images to record
Definition at line 125 of file mitkToFImageWriter.h.
|
protected |
height (y-dimension) of the images to record.
Definition at line 120 of file mitkToFImageWriter.h.
|
protected |
width (x-dimension) of the images to record.
Definition at line 119 of file mitkToFImageWriter.h.
|
protected |
size of the image to save in bytes
Definition at line 124 of file mitkToFImageWriter.h.
|
protected |
type of image to be recorded: ToFImageType3D (0) or ToFImageType2DPlusT (1)
Definition at line 127 of file mitkToFImageWriter.h.
|
protected |
number of pixels (widht*height) of the images to record
Definition at line 123 of file mitkToFImageWriter.h.