Medical Imaging Interaction Toolkit
2016.11.0
Medical Imaging Interaction Toolkit
|
Holds one (compressed) mitk::Image. More...
#include <mitkCompressedImageContainer.h>
Public Member Functions | |
mitkClassMacroItkParent (CompressedImageContainer, itk::Object) | |
Pointer | Clone () const |
void | SetImage (Image *) |
Creates a compressed version of the image. More... | |
Image::Pointer | GetImage () |
Creates a full mitk::Image from its compressed version. More... | |
Static Public Member Functions | |
static Pointer | New () |
Protected Member Functions | |
CompressedImageContainer () | |
virtual | ~CompressedImageContainer () |
Protected Attributes | |
PixelType * | m_PixelType |
unsigned int | m_ImageDimension |
std::vector< unsigned int > | m_ImageDimensions |
unsigned long | m_OneTimeStepImageSizeInBytes |
unsigned int | m_NumberOfTimeSteps |
std::vector< std::pair< unsigned char *, unsigned long > > | m_ByteBuffers |
one for each timestep. first = pointer to compressed data; second = size of buffer in bytes More... | |
BaseGeometry::Pointer | m_ImageGeometry |
Holds one (compressed) mitk::Image.
Uses zlib to compress the data of an mitk::Image.
$Author$
Definition at line 39 of file mitkCompressedImageContainer.h.
|
protected |
Definition at line 24 of file mitkCompressedImageContainer.cpp.
|
protectedvirtual |
Definition at line 28 of file mitkCompressedImageContainer.cpp.
Pointer mitk::CompressedImageContainer::Clone | ( | ) | const |
mitk::Image::Pointer mitk::CompressedImageContainer::GetImage | ( | void | ) |
Creates a full mitk::Image from its compressed version.
This Method hold no buffer, so the uncompression algorithm will be executed every time you call this method. Don't overdo it.
Definition at line 128 of file mitkCompressedImageContainer.cpp.
References MITK_ERROR, MITK_INFO, and mitk::Image::New().
mitk::CompressedImageContainer::mitkClassMacroItkParent | ( | CompressedImageContainer | , |
itk::Object | |||
) |
|
static |
void mitk::CompressedImageContainer::SetImage | ( | Image * | image | ) |
Creates a compressed version of the image.
Will not hold any further SmartPointers to the image.
Definition at line 38 of file mitkCompressedImageContainer.cpp.
References mitk::Image::GetDimension(), mitk::BaseData::GetGeometry(), mitk::Image::GetPixelType(), mitk::Image::GetVolumeData(), MITK_ERROR, and MITK_INFO.
|
protected |
one for each timestep. first = pointer to compressed data; second = size of buffer in bytes
Definition at line 76 of file mitkCompressedImageContainer.h.
|
protected |
Definition at line 68 of file mitkCompressedImageContainer.h.
|
protected |
Definition at line 69 of file mitkCompressedImageContainer.h.
|
protected |
Definition at line 78 of file mitkCompressedImageContainer.h.
|
protected |
Definition at line 73 of file mitkCompressedImageContainer.h.
|
protected |
Definition at line 71 of file mitkCompressedImageContainer.h.
|
protected |
Definition at line 66 of file mitkCompressedImageContainer.h.