Medical Imaging Interaction Toolkit
2024.06.99-60d9b802
Medical Imaging Interaction Toolkit
|
Provides templated image access for all inheriting classes. More...
#include <mitkImagePixelAccessor.h>
Public Types | |
typedef itk::Index< VDimension > | IndexType |
typedef ImagePixelAccessor< TPixel, VDimension > | ImagePixelAccessorType |
typedef Image::ConstPointer | ImageConstPointer |
Public Member Functions | |
int | GetDimension (int i) const |
Protected Member Functions | |
ImagePixelAccessor (ImageConstPointer iP, const mitk::ImageDataItem *iDI) | |
virtual | ~ImagePixelAccessor () |
void | CheckData (const Image *image) |
unsigned int | GetOffset (const IndexType &idx) const |
Protected Attributes | |
const ImageDataItem * | m_ImageDataItem |
BaseGeometry::Pointer | m_Geometry |
Pointer to the used Geometry. Since Geometry can be different to the Image (if memory was forced to be coherent) it is necessary to store Geometry separately. More... | |
itk::ImageRegion< VDimension > * | m_SubRegion |
A Subregion defines an arbitrary area within the image. If no SubRegion is defined, the whole ImageDataItem or Image is regarded. A subregion (e.g. subvolume) can lead to non-coherent memory access where every dimension has a start- and end-offset. More... | |
int | m_Options |
Stores all extended properties of an ImageAccessor. The different flags in mitk::ImageAccessorBase::Options can be unified by bitwise operations. More... | |
Provides templated image access for all inheriting classes.
TPixel | defines the PixelType |
VDimension | defines the dimension for accessing data |
Definition at line 30 of file mitkImagePixelAccessor.h.
typedef Image::ConstPointer mitk::ImagePixelAccessor< TPixel, VDimension >::ImageConstPointer |
Definition at line 35 of file mitkImagePixelAccessor.h.
typedef ImagePixelAccessor<TPixel, VDimension> mitk::ImagePixelAccessor< TPixel, VDimension >::ImagePixelAccessorType |
Definition at line 34 of file mitkImagePixelAccessor.h.
typedef itk::Index<VDimension> mitk::ImagePixelAccessor< TPixel, VDimension >::IndexType |
Definition at line 33 of file mitkImagePixelAccessor.h.
|
inlineprotected |
iP | |
iDI | specifies the allocated image part |
Definition at line 48 of file mitkImagePixelAccessor.h.
|
inlineprotectedvirtual |
Destructor
Definition at line 58 of file mitkImagePixelAccessor.h.
|
inlineprotected |
Definition at line 60 of file mitkImagePixelAccessor.h.
Referenced by mitk::ImagePixelAccessor< TPixel, 3 >::ImagePixelAccessor().
|
inline |
Get Dimensions from ImageDataItem
Definition at line 38 of file mitkImagePixelAccessor.h.
|
inlineprotected |
Get memory offset for a given image index
Definition at line 117 of file mitkImagePixelAccessor.h.
Referenced by mitk::ImagePixelReadAccessor< TPixel, VDimension >::GetConsecutivePixelsAsVector(), mitk::ImagePixelReadAccessor< TPixel, VDimension >::GetPixelByIndex(), mitk::ImagePixelWriteAccessor< TPixel, VDimension >::GetPixelByIndex(), mitk::ImagePixelWriteAccessor< TPixel, VDimension >::GetPixelByIndexSafe(), mitk::ImagePixelReadAccessor< TPixel, VDimension >::GetPixelByIndexSafe(), mitk::ImagePixelWriteAccessor< TPixel, VDimension >::SetPixelByIndex(), and mitk::ImagePixelWriteAccessor< TPixel, VDimension >::SetPixelByIndexSafe().
|
protected |
Pointer to the used Geometry. Since Geometry can be different to the Image (if memory was forced to be coherent) it is necessary to store Geometry separately.
Definition at line 102 of file mitkImagePixelAccessor.h.
|
protected |
Holds the specified ImageDataItem
Definition at line 96 of file mitkImagePixelAccessor.h.
Referenced by mitk::ImagePixelAccessor< TPixel, 3 >::CheckData(), mitk::ImagePixelAccessor< TPixel, 3 >::GetDimension(), mitk::ImagePixelAccessor< TPixel, 3 >::GetOffset(), and mitk::ImagePixelAccessor< TPixel, 3 >::ImagePixelAccessor().
|
protected |
Stores all extended properties of an ImageAccessor. The different flags in mitk::ImageAccessorBase::Options can be unified by bitwise operations.
Definition at line 114 of file mitkImagePixelAccessor.h.
|
protected |
A Subregion defines an arbitrary area within the image. If no SubRegion is defined, the whole ImageDataItem or Image is regarded. A subregion (e.g. subvolume) can lead to non-coherent memory access where every dimension has a start- and end-offset.
Definition at line 109 of file mitkImagePixelAccessor.h.