Medical Imaging Interaction Toolkit  2016.11.0
Medical Imaging Interaction Toolkit
mitk::CompressedImageContainer Class Reference

Holds one (compressed) mitk::Image. More...

#include <mitkCompressedImageContainer.h>

Inheritance diagram for mitk::CompressedImageContainer:
Collaboration diagram for mitk::CompressedImageContainer:

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

PixelTypem_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
 

Detailed Description

Holds one (compressed) mitk::Image.

Uses zlib to compress the data of an mitk::Image.

$Author$

Definition at line 39 of file mitkCompressedImageContainer.h.

Constructor & Destructor Documentation

mitk::CompressedImageContainer::CompressedImageContainer ( )
protected

Definition at line 24 of file mitkCompressedImageContainer.cpp.

mitk::CompressedImageContainer::~CompressedImageContainer ( )
protectedvirtual

Definition at line 28 of file mitkCompressedImageContainer.cpp.

Member Function Documentation

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   
)
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.

Member Data Documentation

std::vector<std::pair<unsigned char *, unsigned long> > mitk::CompressedImageContainer::m_ByteBuffers
protected

one for each timestep. first = pointer to compressed data; second = size of buffer in bytes

Definition at line 76 of file mitkCompressedImageContainer.h.

unsigned int mitk::CompressedImageContainer::m_ImageDimension
protected

Definition at line 68 of file mitkCompressedImageContainer.h.

std::vector<unsigned int> mitk::CompressedImageContainer::m_ImageDimensions
protected

Definition at line 69 of file mitkCompressedImageContainer.h.

BaseGeometry::Pointer mitk::CompressedImageContainer::m_ImageGeometry
protected

Definition at line 78 of file mitkCompressedImageContainer.h.

unsigned int mitk::CompressedImageContainer::m_NumberOfTimeSteps
protected

Definition at line 73 of file mitkCompressedImageContainer.h.

unsigned long mitk::CompressedImageContainer::m_OneTimeStepImageSizeInBytes
protected

Definition at line 71 of file mitkCompressedImageContainer.h.

PixelType* mitk::CompressedImageContainer::m_PixelType
protected

Definition at line 66 of file mitkCompressedImageContainer.h.


The documentation for this class was generated from the following files: