|
Medical Imaging Interaction Toolkit
2026.06.00
Medical Imaging Interaction Toolkit
|
#include <mitkImageAccessorBase.h>


Public Types | |
| enum | Options { DefaultBehavior , ExceptionIfLocked , ForceCoherentMemory , IgnoreLock } |
| Option flags that control ImageAccessor behavior. More... | |
| typedef itk::SmartPointer< const mitk::Image > | ImageConstPointer |
| Const smart pointer type for the associated Image. More... | |
Public Member Functions | |
| virtual | ~ImageAccessorBase () |
| Virtual destructor. Releases the wait lock if no other accessors are waiting. More... | |
| const void * | GetData () const |
| Get const access to the raw image data. More... | |
Protected Member Functions | |
| ImageAccessorBase (ImageConstPointer iP, const ImageDataItem *iDI=nullptr, int OptionFlags=DefaultBehavior) | |
| Checks validity of given parameters from inheriting classes and stores those parameters in member variables. More... | |
| void | Increment () |
| Increments m_WaiterCount. A call of this method is prohibited unless the Mutex m_ReadWriteLock in the mitk::Image class is Locked. More... | |
| bool | Overlap (const ImageAccessorBase *iAB) |
| Computes if there is an Overlap of the image part between this instantiation and another ImageAccessor object. More... | |
| void | WaitForReleaseOf (ImageAccessorWaitLock *wL) |
| Uses the WaitLock to wait for another ImageAccessor. More... | |
| void | PreventRecursiveMutexLock (ImageAccessorBase *iAB) |
| Prevents a recursive mutex lock by comparing thread ids of competing image accessors. More... | |
| virtual const Image * | GetImage () const =0 |
Protected Attributes | |
| itk::ImageRegion< 4 > * | m_SubRegion |
| void * | m_AddressBegin |
| void * | m_AddressEnd |
| int | m_Options |
| Stores all extended properties of an ImageAccessor. The different flags in mitk::ImageAccessorBase::Options can be unified by bitwise operations. More... | |
| bool | m_CoherentMemory |
| ImageAccessorWaitLock * | m_WaitLock |
| Pointer to a WaitLock struct, that allows other ImageAccessors to wait for this ImageAccessor. More... | |
| ThreadIDType | m_Thread |
Definition at line 66 of file mitkImageAccessorBase.h.
Const smart pointer type for the associated Image.
Definition at line 81 of file mitkImageAccessorBase.h.
Option flags that control ImageAccessor behavior.
These flags can be combined via bitwise OR and passed to accessor constructors.
| Enumerator | |
|---|---|
| DefaultBehavior | Default behavior: wait for locked memory to be released. |
| ExceptionIfLocked | Throw MemoryIsLockedException instead of waiting if the memory is locked. |
| ForceCoherentMemory | Force the accessed memory to be coherent (contiguous). May cause additional memory allocation and data copying, potentially affecting performance. |
| IgnoreLock | Bypass the lock mechanism for immediate access. Only valid for read accessors. |
Definition at line 89 of file mitkImageAccessorBase.h.
|
virtual |
Virtual destructor. Releases the wait lock if no other accessors are waiting.
|
protected |
Checks validity of given parameters from inheriting classes and stores those parameters in member variables.
|
inline |
Get const access to the raw image data.
Definition at line 110 of file mitkImageAccessorBase.h.
|
protectedpure virtual |
Implemented in mitk::ImageWriteAccessor, mitk::ImageVtkWriteAccessor, mitk::ImageVtkReadAccessor, and mitk::ImageReadAccessor.
|
inlineprotected |
Increments m_WaiterCount. A call of this method is prohibited unless the Mutex m_ReadWriteLock in the mitk::Image class is Locked.
Definition at line 154 of file mitkImageAccessorBase.h.
References mitk::ImageAccessorWaitLock::m_WaiterCount.
|
protected |
Computes if there is an Overlap of the image part between this instantiation and another ImageAccessor object.
| mitk::Exception | if memory area is incoherent (not supported yet) |
|
protected |
Prevents a recursive mutex lock by comparing thread ids of competing image accessors.
|
protected |
Uses the WaitLock to wait for another ImageAccessor.
|
protected |
Points to the beginning of the image part.
Definition at line 136 of file mitkImageAccessorBase.h.
Referenced by mitk::ImagePixelReadAccessor< TPixel, VDimension >::GetConsecutivePixelsAsVector(), mitk::ImagePixelReadAccessor< TPixel, VDimension >::GetData(), mitk::ImagePixelWriteAccessor< TPixel, VDimension >::GetData(), mitk::ImagePixelReadAccessor< TPixel, VDimension >::GetPixelByIndex(), mitk::ImagePixelWriteAccessor< TPixel, VDimension >::GetPixelByIndex(), mitk::ImagePixelReadAccessor< TPixel, VDimension >::GetPixelByIndexSafe(), mitk::ImagePixelWriteAccessor< TPixel, VDimension >::GetPixelByIndexSafe(), mitk::ImagePixelWriteAccessor< TPixel, VDimension >::SetPixelByIndex(), and mitk::ImagePixelWriteAccessor< TPixel, VDimension >::SetPixelByIndexSafe().
|
protected |
Contains the first address after the image part.
Definition at line 139 of file mitkImageAccessorBase.h.
Referenced by mitk::ImagePixelReadAccessor< TPixel, VDimension >::GetPixelByIndexSafe(), mitk::ImagePixelWriteAccessor< TPixel, VDimension >::GetPixelByIndexSafe(), and mitk::ImagePixelWriteAccessor< TPixel, VDimension >::SetPixelByIndexSafe().
|
protected |
Defines if the accessed image part lies coherently in memory
Definition at line 147 of file mitkImageAccessorBase.h.
|
protected |
Stores all extended properties of an ImageAccessor. The different flags in mitk::ImageAccessorBase::Options can be unified by bitwise operations.
Definition at line 144 of file mitkImageAccessorBase.h.
|
protected |
ImageAccessor has access to the image it belongs to. Contains a SubRegion (always represented in maximal possible dimension)
Definition at line 133 of file mitkImageAccessorBase.h.
|
protected |
Definition at line 164 of file mitkImageAccessorBase.h.
|
protected |
Pointer to a WaitLock struct, that allows other ImageAccessors to wait for this ImageAccessor.
Definition at line 150 of file mitkImageAccessorBase.h.