MeVisLab Toolbox Reference
ml::TSubImageWithCursor< DATATYPE > Class Template Reference

A class that offers a TSubImage with a TSubImageCursor. More...

#include <mlTSubImage.h>

Inheritance diagram for ml::TSubImageWithCursor< DATATYPE >:
ml::TSubImage< DATATYPE > ml::SubImage

Public Member Functions

 TSubImageWithCursor ()
 Default constructor. More...
 
 TSubImageWithCursor (const TSubImage< DATATYPE > &subImage)
 Constructor with TSubImage. More...
 
 TSubImageWithCursor (const SubImage &subImage)
 Constructor with SubImage. More...
 
 TSubImageWithCursor (const TSubImageWithCursor &subImage)
 Constructor with TSubImageWithCursor. More...
 
TSubImageWithCursoroperator= (const TSubImageWithCursor< DATATYPE > &tSubImg)
 Assignment operator to get an identical copy. More...
 
Positioning and movement of voxel cursor.
void setCursorSubImagePosition (const ImageVector &position)
 Sets the cursor to the given position relative to the origin of the subimage region. More...
 
void setCursorSubImagePosition (MLint x, MLint y, MLint z)
 Sets the cursor to the given 3D position (x, y, z) relative to the origin of the subimage region. More...
 
void setCursorImagePosition (const ImageVector &position)
 Sets the cursor to the given 6D position relative to the origin of the complete image region. More...
 
void setCursorImagePosition (MLint x, MLint y, MLint z)
 Sets the cursor to the given 3D position (x, y, z) relative to the origin of the complete image region. More...
 
void setCursorPosition (const DATATYPE *pointer)
 Sets the cursor to the given pointer where pointer is the memory address of the voxel. More...
 
void moveCursorByOffset (const ImageVector &offset)
 Moves the cursor to cursor position + offset. More...
 
void moveCursorByOffset (MLint x, MLint y, MLint z)
 Moves the cursor to cursor position + (x, y, z). More...
 
void moveCursorX ()
 Moves the cursor forward in x direction. More...
 
void moveCursorY ()
 Moves the cursor forward in y direction. More...
 
void moveCursorZ ()
 Moves the cursor forward in z direction. More...
 
void moveCursorC ()
 Moves the cursor forward in c direction. More...
 
void moveCursorT ()
 Moves the cursor forward in t direction. More...
 
void moveCursorU ()
 Moves the cursor forward in u direction. More...
 
void reverseMoveCursorX ()
 Moves the cursor backward in x direction. More...
 
void reverseMoveCursorY ()
 Moves the cursor backward in y direction. More...
 
void reverseMoveCursorZ ()
 Moves the cursor backward in z direction. More...
 
void reverseMoveCursorC ()
 Moves the cursor backward in c direction. More...
 
void reverseMoveCursorT ()
 Moves the cursor backward in t direction. More...
 
void reverseMoveCursorU ()
 Moves the cursor backward in u direction. More...
 
Get voxel values at the cursor position.
DATATYPE getCursorValue () const
 Returns the voxel value at the cursor position. More...
 
DATATYPE getCursorValueWithOffset (const ImageVector &offset) const
 Returns the voxel value at (cursor position + offset) More...
 
DATATYPE getCursorValueWithOffset (MLint dx, MLint dy, MLint dz) const
 Returns the voxel value at (cursor position + (dx, dy, dz)) More...
 
Getting the cursor position as pointer to data.

Returns the current cursor pointer (i.e., returns the memory address of the voxel the cursor points to).

DATATYPE * getCursorPointer () const
 
DATATYPE * getCursorPointerWithOffset (const ImageVector &offset) const
 Returns the cursor pointer of the voxel computed from the current cursor shifted by offset. More...
 
DATATYPE * getCursorPointerWithOffset (MLint dx, MLint dy, MLint dz) const
 Returns the cursor pointer of the voxel computed from the current cursor shifted by (dx, dy, dz). More...
 
Set voxel values at the cursor position.
void setCursorValue (DATATYPE value)
 Sets the voxel value at the cursor position to value. More...
 
void setCursorValueWithOffset (const ImageVector &offset, DATATYPE value)
 Sets the voxel value at (cursor position + offset) to value. More...
 
void setCursorValueWithOffset (MLint dx, MLint dy, MLint dz, DATATYPE value)
 Sets voxel value at (cursor position + (dx, dy,dz)) to value. More...
 
- Public Member Functions inherited from ml::TSubImage< DATATYPE >
 TSubImage (const SubImageBox &box, MLDataType dataType, void *data)
 Constructor for an image region with location/extent box with data type dataType (must fit to DATATYPE!) and the memory address data that holds the image region. More...
 
 TSubImage ()
 Default constructor to build a typed subimage (with an empty box) from scratch. More...
 
 TSubImage (const SubImage &subImage)
 Constructor to build a typed subimage from an untyped subImage. More...
 
 TSubImage (const TSubImage< DATATYPE > &typedSubImage)
 Copy constructor to get an identical copy. More...
 
 ~TSubImage () override=default
 Virtual destructor to suppress compiler warnings. More...
 
TSubImageoperator= (const TSubImage< DATATYPE > &typedSubImage)
 Assignment operator to get an identical copy. More...
 
const DATATYPE * getData () const
 Returns the memory address of the image region. Overloads methods from SubImage. More...
 
DATATYPE * getData ()
 
const DATATYPE * getSubImagePointer (const ImageVector &position) const
 Returns a pointer to voxel data of image voxel at the 6D position relative to the origin of the subimage region. More...
 
DATATYPE * getSubImagePointer (const ImageVector &position)
 
const DATATYPE * getSubImagePointer (MLint x, MLint y, MLint z) const
 Returns a pointer to voxel data of image voxel at 3D position p=(x, y, z) relative to the origin of the subimage region. More...
 
DATATYPE * getSubImagePointer (MLint x, MLint y, MLint z)
 
const DATATYPE * getImagePointer (const ImageVector &position) const
 Returns a pointer to voxel data of image voxel at 6D position position relative to the origin of the complete image region. More...
 
DATATYPE * getImagePointer (const ImageVector &position)
 
const DATATYPE * getImagePointer (MLint x, MLint y, MLint z) const
 Returns a pointer to voxel data of image voxel at 3D position p=(x, y, z) relative to the origin of the complete image region. More...
 
DATATYPE * getImagePointer (MLint x, MLint y, MLint z)
 
ImageVector convertPointerToSubImagePosition (DATATYPE *pointer) const
 Returns the 6D voxel coordinates corresponding to the memory address pointer. More...
 
void convertPointerToSubImagePosition (DATATYPE *pointer, MLint *x, MLint *y, MLint *z) const
 Returns the 3D voxel coordinates corresponding to the memory address pointer. More...
 
ImageVector convertPointerToImagePosition (DATATYPE *pointer) const
 Returns the 6D voxel coordinates corresponding to the memory address pointer. More...
 
void convertPointerToImagePosition (DATATYPE *pointer, MLint *x, MLint *y, MLint *z) const
 Returns the 3D voxel coordinates corresponding to the memory address pointer. More...
 
const DATATYPE & operator[] (const ImageVector &position) const
 Constant reference access to voxel value at the given position. More...
 
DATATYPE & operator[] (const ImageVector &position)
 Reference access to voxel value at the given position. More...
 
void setSubImageValue (const ImageVector &position, DATATYPE value)
 Sets the voxel value at the given position to the given value where position is relative to the origin of the subimage region. More...
 
DATATYPE getSubImageValue (const ImageVector &position) const
 Returns voxel value at the given position where position is relative to the origin of the subimage region. More...
 
void setSubImageValue (MLint x, MLint y, DATATYPE value)
 Sets the voxel value at the given position(x, y) to the given value where the position is relative to the origin of the subimage region. More...
 
DATATYPE getSubImageValue (MLint x, MLint y) const
 Returns the voxel value at position (x, y) where the position is relative to the origin of the subimage region. More...
 
void setSubImageValue (MLint x, MLint y, MLint z, DATATYPE value)
 Sets the voxel value at the given position (x, y, z) to the given value where the position is relative to the origin of the subimage region. More...
 
DATATYPE getSubImageValue (MLint x, MLint y, MLint z) const
 Returns the voxel value at the given position (x, y, z) where the position is relative to the origin of the subimage region. More...
 
void setImageValue (const ImageVector &position, DATATYPE value)
 Sets the 6D voxel at the given position to the given value. More...
 
DATATYPE getImageValue (const ImageVector &position) const
 Returns the 6D voxel value from the given position. More...
 
void setImageValue (MLint x, MLint y, DATATYPE value)
 Sets the 2D voxel at the given position (x, y) to the the given value. More...
 
DATATYPE getImageValue (MLint x, MLint y) const
 Returns the 2D voxel value from the given position (x, y). More...
 
void setImageValue (MLint x, MLint y, MLint z, DATATYPE value)
 Sets the 3D voxel at the given position (x, y, z) to the given value. More...
 
DATATYPE getImageValue (MLint x, MLint y, MLint z) const
 Returns the 3D voxel value from given position (x, y, z). More...
 
MLint calculateMinMax (DATATYPE &minValue, DATATYPE &maxValue, const SubImageBox *const validBox=nullptr) const
 Scans subimage and determines the minimum and maximum values of the region that is part of subimage box and of validBox. More...
 
template<typename FROM_DATATYPE >
void copySubImageReorderColorPlanesToInterleaved (const TSubImage< FROM_DATATYPE > &typedFromImage, const ScaleShiftData &scaleShiftData)
 Implements special case for void copySubImageTyped(const TSubImage<FROM_DATATYPE> &typedFromImg, const ScaleShiftData& scaleShiftData) where color planes shall be interleaved instead of in planes. More...
 
template<typename FROM_DATATYPE >
void copySubImageTyped (const TSubImage< FROM_DATATYPE > &typedFromImg, const ScaleShiftData &scaleShiftData)
 Copies image data from the subimage fromImg into the overlapping region of this subimage. More...
 
void fill (DATATYPE value)
 Sets all voxel values in subimage to value. More...
 
void fillBordersWithValue (const SubImageBox &box, DATATYPE fillValue)
 Fills all regions with fillValue that are not covered by box. More...
 
void fillInvalidRegionWithValue (DATATYPE value)
 Fills the invalid region (everything outside of getValidRegion()) with the given value. More...
 
void fillInvalidRegionWithBorderValues ()
 Fills the invalid region (i.e., everything outside of getValidRegion() ) with the values on the borders of the valid region. More...
 
- Public Member Functions inherited from ml::SubImage
const SubImageBoxgetBox () const
 Returns the box describing the origin/extent of the subimage. More...
 
void setSourceImageExtent (const ImageVector &extent)
 Sets the image extent of the source image that was used to create this SubImage to extent. More...
 
ImageVector getSourceImageExtent () const
 Returns the image extent of the source image that was used to create this SubImage. More...
 
SubImageBox getValidRegion () const
 Returns the valid region of the SubImage, which is defined by the intersection of the SubImage::getBox() and the SubImageBox(ImageVector(0), SubImage::getSourceImageExtent()-1). More...
 
MLint getNumVoxels () const
 Returns number of voxels in (sub)image. More...
 
MLint getSizeInBytes () const
 Returns number of potential bytes in (sub)image. More...
 
ImageVector getStride () const
 Returns a stride vector to address the memory efficiently. More...
 
MLint getOffset (const ImageVector &voxelPosition) const
 Returns the array index offset from the origin (0,0,0,0,0,0) to the voxelPosition. More...
 
void setDataType (MLDataType dataType)
 Override the inherited setDataType method to set type of data to dataType. More...
 
MLDataType getDataType () const
 Returns the type of image data. More...
 
const MLTypeInfosgetDataTypeInfos () const
 Returns MLTypeInfos for image data type. More...
 
MLEXPORT ImageProperties toImageProperties () const
 Converts the Subimage's data type and extend to an ImageProperties object. More...
 
MLEXPORT void setFromImageProperties (const ImageProperties &imageProperties)
 Sets the image box and data type from the imageProperties extent and data type. More...
 
void toStream (std::ostream &ostr) const
 
 SubImage ()
 Constructor: Creates a subimage with no data. More...
 
 SubImage (const SubImage &si)
 Copy constructor to get identical copy. More...
 
 SubImage (const SubImageBox &box, MLDataType datatype, void *data=nullptr)
 Constructor for a rectangular 6D image region with position and extent given by box, with data type data type and memory given by the pointer data. More...
 
 SubImage (const SubImage &si, const ImageVector &offset)
 Copy constructor to get identical copy. More...
 
virtual ~SubImage ()=default
 Virtual destructor to suppress compiler warnings. More...
 
SubImageoperator= (const SubImage &si)
 Assignment operator to get identical copy. More...
 
void setBox (const SubImageBox &subImageBox)
 Sets a rectangular 6D region of the subimage to subImageBox. More...
 
void setBox (const ImageVector &imageExtent)
 Sets a rectangular 6D region of the subimage to imageExtent. More...
 
void translate (const ImageVector &offset)
 Translates the box of the subimage by adding the vector offset. More...
 
const ImageVectorgetOrigin () const
 Returns the origin of the subimage, which is identical to getBox().v1. More...
 
void setOrigin (const ImageVector &newOrigin)
 Sets the origin of the subimage, which moves the box of the subimage to newOrigin. More...
 
ImageVector getExtent () const
 Returns the extent of the subimage, which is identical to getBox().getExtent(). More...
 
void setExtent (MLint x, MLint y, MLint z=1, MLint c=1, MLint t=1, MLint u=1)
 Sets the extent of the subimage to newExtent. More...
 
void setExtent (const ImageVector &newExtent)
 Sets the extent of the subimage to newExtent. This also changes the strides. More...
 
SubImageBox getBoxFromExtent () const
 Returns the size of image as box with origin 0. More...
 
SubImageBox getBoxFromImageExtent () const
 
ImageVector getImageExtent () const
 
void setImageExtent (const ImageVector &newExtent)
 
void * getSubImagePointer (const ImageVector &voxelPosition) const
 Returns a pointer to voxel data of image voxel at 6D voxelPosition relative to the origin of the subimage region. More...
 
void * getSubImagePointer (MLint x, MLint y, MLint z) const
 Returns a pointer to voxel data of image voxel at 3D position p=(x,y,z) relative to the origin of the subimage region. More...
 
void * getImagePointer (const ImageVector &voxelPosition) const
 Returns a pointer to voxel data of image voxel at 6D position voxelPosition relative to the origin of the complete image region. More...
 
void * getImagePointer (MLint x, MLint y, MLint z) const
 Returns a pointer to voxel data of image voxel at 3D position p=(x, y, z) relative to the origin of the complete image region. More...
 
MLEXPORT void copySubImage (const SubImage &fromImage, const ScaleShiftData &scaleShiftData)
 Copies image data from the subimage fromImage into the overlapping region of this subimage. More...
 
MLEXPORT void copySubImage (const SubImage &fromImage)
 Implements a special case for void copySubImage(const TSubImage<FROM_DATATYPE> &typedFromImg, const ScaleShiftData& scaleShiftData) where scaleShiftData is default. More...
 
bool isValidSubImagePosition (const ImageVector &voxelPosition) const
 Returns true if the 6D voxelPosition is a valid position within the subimage region, i.e., if voxelPosition is within (0,0,0,0,0,0) and subimage extents. More...
 
bool isValidSubImagePosition (MLint x, MLint y, MLint z) const
 Returns true if the 3D position p=(x, y, z) is a valid position within the subimage region, i.e., if the position is within (0,0,0) and subimage extents. More...
 
bool isValidImagePosition (const ImageVector &voxelPosition) const
 Returns true if the 6D voxelPosition is a valid position within the subimage region, i.e., if voxelPosition is within subImgBox.v1 and subImgBox.v2. More...
 
bool isValidImagePosition (MLint x, MLint y, MLint z) const
 Returns true if the 3D position p=(x, y, z) is a valid position within the subimage region, i.e., if the position is within subImgBox.v1 and subImgBox.v2. More...
 
MLEXPORT void allocate (MLMemoryErrorHandling handleFailure)
 Allocates data with MLAlloc(). More...
 
MLEXPORT void allocateAsMemoryBlockHandle (MLMemoryErrorHandling handleFailure=ML_RETURN_NULL)
 Allocates data using the ML memory manager. For failure handing, see SubImage::allocate(). More...
 
MLEXPORT void free ()
 Frees data pointed to by getData() with MLFree(). More...
 
MLEXPORT bool isOneValued () const
 Returns true if all page voxels have the same value or if the page contains only one voxel. More...
 
MLEXPORT MLint calculateMinMax (MLdouble &minValue, MLdouble &maxValue, const SubImageBox *const validBox=nullptr) const
 Scans subimage and determines minimum and maximum values on region, which is part of subimage box and of validBox. More...
 
MLEXPORT void compare (const SubImage &subImage2, bool *regionsMatch, bool *dataTypesMatch, bool *thisBoxIsPartOfRegion2, bool *region2IsPartOfThisBox, bool *overlapHasSameValues, ImageVector *firstMismatchPos) const
 Compares two subimages with respect to their regions and their contents. More...
 
MLEXPORT void fill (MLdouble value)
 Fills the subimage with a value that is cast to the data type of the subimage. More...
 
MLEXPORT void fillWithTypeData (const MLTypeData *value)
 Fills the subimage with a value given as MLTypeData. More...
 
MLEXPORT void fillBordersWithScalarValue (const SubImageBox &box, MLdouble fillValue)
 Fills all regions with the fill value fillValue that are not covered by box. More...
 
MLEXPORT void fillBordersWithTypeData (const SubImageBox &box, const MLTypeData *fillValue)
 Fills all regions with the fill value fillValue which are not covered by box. More...
 
MLEXPORT void fillBordersWithInputValues (const SubImageBox &box, const SubImage &inputSubImage)
 Fills all regions with values from inputSubImage which are not covered by box; however, only valid regions of inputSubImage are read. More...
 
MLEXPORT void fillBordersWithBorderValues (const SubImageBox &box)
 Each voxel that is not inside box is filled with the voxel value of the nearest voxel that is inside box. More...
 
void fillInvalidRegionWithScalarValue (MLdouble value)
 Fills the invalid region (everything outside of getValidRegion()) with the given value. More...
 
void fillInvalidRegionWithTypeData (const MLTypeData *value)
 Fills the invalid region (everything outside of getValidRegion()) with the given value. More...
 
void fillInvalidRegionWithBorderValues ()
 Fills the invalid region. More...
 
MLEXPORT bool isValid () const
 Returns 1 (=true) if image region and data is valid. More...
 
void * getData () const
 Returns the memory address of the memory managed by the subimage. More...
 
MLEXPORT void setData (void *data)
 Sets data as a new memory block for the subimage. More...
 
MLEXPORT void setDataFromMemoryBlockHandle (const MLMemoryBlockHandle &data)
 Sets the managed data from a given MLMemoryBlockHandle, the subimage will store this handle and thus reference count the memory managed by the handle as long as the SubImage stays alive. More...
 
const MLMemoryBlockHandlegetMemoryBlockHandle () const
 Returns the memory block handle that manages the data of this SubImage if it has been set via setDataFromMemoryBlockHandle(). More...
 

Additional Inherited Members

- Public Types inherited from ml::TSubImage< DATATYPE >
typedef DATATYPE ComponentType
 A typedef to 'export' the type of voxels components. More...
 
typedef TSubImageCursor< DATATYPE > Cursor
 A read/write cursor. More...
 
typedef ConstTSubImageCursor< DATATYPE > ConstCursor
 A read-only cursor. More...
 
- Static Public Member Functions inherited from ml::SubImage
static MLEXPORT MLint coordToIndex (MLint x, MLint y, MLint z, MLint c, MLint t, MLint u, const ImageVector &size)
 Converts the coordinate (x, y, z, c, t,u) to an index into an image with 6D extents given by size. More...
 
static MLEXPORT MLint coordToIndex (const ImageVector &voxelPosition, const ImageVector &size)
 Converts the coordinate voxelPosition into the image with extents size to an index. More...
 
static MLEXPORT ImageVector indexToCoord (MLint index, const ImageVector &extent)
 Converts an index into an array with extents extent to a coordinate. More...
 
- Protected Member Functions inherited from ml::SubImage
void _calcFillAreaParams (const SubImageBox &box, const SubImageBox &maxValidInputRegion, ImageVector &boxV1, ImageVector &boxV2, ImageVector &outputTSubImageV1, ImageVector &outputTSubImageV2, MLint &fullLineLenX, MLint &fullLineLenXB, MLint &leftLineStartX, MLint &leftLineLenX, MLint &leftLineLenXB, MLint &rightLineStartX, MLint &rightLineLenX, MLint &rightLineLenXB)
 Helper method to calculate important parameters for page based border filling. More...
 
void _copySubImageGeneric (const SubImage &fromImage, const ScaleShiftData &scaleShiftData)
 Generic, non-optimized version of copySubImage. More...
 
const MLTypeInfos_getDataTypeInfos (MLDataType dt) const
 Returns MLTypeInfos for used datatypes, indicates error if the type dt is not registered. More...
 
- Protected Attributes inherited from ml::SubImage
SubImageBox _box
 The box of the subimage. More...
 
ImageVector _sourceImageExtent
 The extent of the source image, which is used for getValidRegion(). More...
 
void * _data
 Memory chunk managed by this subimage. More...
 
MLMemoryBlockHandle _memoryBlock
 Memory block used by this subimage. More...
 
ImageVector _stride
 Stride vector to address the memory efficiently. More...
 
MLDataType _dataType
 Data type of the image. More...
 

Detailed Description

template<typename DATATYPE>
class ml::TSubImageWithCursor< DATATYPE >

A class that offers a TSubImage with a TSubImageCursor.

This class should only be used in legacy code to keep old code working.

Definition at line 989 of file mlTSubImage.h.

Constructor & Destructor Documentation

◆ TSubImageWithCursor() [1/4]

template<typename DATATYPE >
ml::TSubImageWithCursor< DATATYPE >::TSubImageWithCursor ( )
inline

Default constructor.

Definition at line 995 of file mlTSubImage.h.

◆ TSubImageWithCursor() [2/4]

template<typename DATATYPE >
ml::TSubImageWithCursor< DATATYPE >::TSubImageWithCursor ( const TSubImage< DATATYPE > &  subImage)
inline

Constructor with TSubImage.

Definition at line 999 of file mlTSubImage.h.

◆ TSubImageWithCursor() [3/4]

template<typename DATATYPE >
ml::TSubImageWithCursor< DATATYPE >::TSubImageWithCursor ( const SubImage subImage)
inline

Constructor with SubImage.

Definition at line 1004 of file mlTSubImage.h.

◆ TSubImageWithCursor() [4/4]

template<typename DATATYPE >
ml::TSubImageWithCursor< DATATYPE >::TSubImageWithCursor ( const TSubImageWithCursor< DATATYPE > &  subImage)
inline

Constructor with TSubImageWithCursor.

Definition at line 1009 of file mlTSubImage.h.

Member Function Documentation

◆ getCursorPointer()

template<typename DATATYPE >
DATATYPE* ml::TSubImageWithCursor< DATATYPE >::getCursorPointer ( ) const
inline

Definition at line 1093 of file mlTSubImage.h.

◆ getCursorPointerWithOffset() [1/2]

template<typename DATATYPE >
DATATYPE* ml::TSubImageWithCursor< DATATYPE >::getCursorPointerWithOffset ( const ImageVector offset) const
inline

Returns the cursor pointer of the voxel computed from the current cursor shifted by offset.

Definition at line 1095 of file mlTSubImage.h.

◆ getCursorPointerWithOffset() [2/2]

template<typename DATATYPE >
DATATYPE* ml::TSubImageWithCursor< DATATYPE >::getCursorPointerWithOffset ( MLint  dx,
MLint  dy,
MLint  dz 
) const
inline

Returns the cursor pointer of the voxel computed from the current cursor shifted by (dx, dy, dz).

Definition at line 1097 of file mlTSubImage.h.

◆ getCursorValue()

template<typename DATATYPE >
DATATYPE ml::TSubImageWithCursor< DATATYPE >::getCursorValue ( ) const
inline

Returns the voxel value at the cursor position.

Definition at line 1080 of file mlTSubImage.h.

◆ getCursorValueWithOffset() [1/2]

template<typename DATATYPE >
DATATYPE ml::TSubImageWithCursor< DATATYPE >::getCursorValueWithOffset ( const ImageVector offset) const
inline

Returns the voxel value at (cursor position + offset)

Definition at line 1082 of file mlTSubImage.h.

◆ getCursorValueWithOffset() [2/2]

template<typename DATATYPE >
DATATYPE ml::TSubImageWithCursor< DATATYPE >::getCursorValueWithOffset ( MLint  dx,
MLint  dy,
MLint  dz 
) const
inline

Returns the voxel value at (cursor position + (dx, dy, dz))

Definition at line 1084 of file mlTSubImage.h.

◆ moveCursorByOffset() [1/2]

template<typename DATATYPE >
void ml::TSubImageWithCursor< DATATYPE >::moveCursorByOffset ( const ImageVector offset)
inline

Moves the cursor to cursor position + offset.

Definition at line 1041 of file mlTSubImage.h.

◆ moveCursorByOffset() [2/2]

template<typename DATATYPE >
void ml::TSubImageWithCursor< DATATYPE >::moveCursorByOffset ( MLint  x,
MLint  y,
MLint  z 
)
inline

Moves the cursor to cursor position + (x, y, z).

Definition at line 1043 of file mlTSubImage.h.

◆ moveCursorC()

template<typename DATATYPE >
void ml::TSubImageWithCursor< DATATYPE >::moveCursorC ( )
inline

Moves the cursor forward in c direction.

Definition at line 1051 of file mlTSubImage.h.

◆ moveCursorT()

template<typename DATATYPE >
void ml::TSubImageWithCursor< DATATYPE >::moveCursorT ( )
inline

Moves the cursor forward in t direction.

Definition at line 1053 of file mlTSubImage.h.

◆ moveCursorU()

template<typename DATATYPE >
void ml::TSubImageWithCursor< DATATYPE >::moveCursorU ( )
inline

Moves the cursor forward in u direction.

Definition at line 1055 of file mlTSubImage.h.

◆ moveCursorX()

template<typename DATATYPE >
void ml::TSubImageWithCursor< DATATYPE >::moveCursorX ( )
inline

Moves the cursor forward in x direction.

Definition at line 1045 of file mlTSubImage.h.

◆ moveCursorY()

template<typename DATATYPE >
void ml::TSubImageWithCursor< DATATYPE >::moveCursorY ( )
inline

Moves the cursor forward in y direction.

Definition at line 1047 of file mlTSubImage.h.

◆ moveCursorZ()

template<typename DATATYPE >
void ml::TSubImageWithCursor< DATATYPE >::moveCursorZ ( )
inline

Moves the cursor forward in z direction.

Definition at line 1049 of file mlTSubImage.h.

◆ operator=()

template<typename DATATYPE >
TSubImageWithCursor& ml::TSubImageWithCursor< DATATYPE >::operator= ( const TSubImageWithCursor< DATATYPE > &  tSubImg)
inline

Assignment operator to get an identical copy.

Note that only the pointer to the data is copied, and not the data itself.

Definition at line 1015 of file mlTSubImage.h.

◆ reverseMoveCursorC()

template<typename DATATYPE >
void ml::TSubImageWithCursor< DATATYPE >::reverseMoveCursorC ( )
inline

Moves the cursor backward in c direction.

Definition at line 1063 of file mlTSubImage.h.

◆ reverseMoveCursorT()

template<typename DATATYPE >
void ml::TSubImageWithCursor< DATATYPE >::reverseMoveCursorT ( )
inline

Moves the cursor backward in t direction.

Definition at line 1065 of file mlTSubImage.h.

◆ reverseMoveCursorU()

template<typename DATATYPE >
void ml::TSubImageWithCursor< DATATYPE >::reverseMoveCursorU ( )
inline

Moves the cursor backward in u direction.

Definition at line 1067 of file mlTSubImage.h.

◆ reverseMoveCursorX()

template<typename DATATYPE >
void ml::TSubImageWithCursor< DATATYPE >::reverseMoveCursorX ( )
inline

Moves the cursor backward in x direction.

Definition at line 1057 of file mlTSubImage.h.

◆ reverseMoveCursorY()

template<typename DATATYPE >
void ml::TSubImageWithCursor< DATATYPE >::reverseMoveCursorY ( )
inline

Moves the cursor backward in y direction.

Definition at line 1059 of file mlTSubImage.h.

◆ reverseMoveCursorZ()

template<typename DATATYPE >
void ml::TSubImageWithCursor< DATATYPE >::reverseMoveCursorZ ( )
inline

Moves the cursor backward in z direction.

Definition at line 1061 of file mlTSubImage.h.

◆ setCursorImagePosition() [1/2]

template<typename DATATYPE >
void ml::TSubImageWithCursor< DATATYPE >::setCursorImagePosition ( const ImageVector position)
inline

Sets the cursor to the given 6D position relative to the origin of the complete image region.

This is, the position p=getBox.v1() is considered the origin of the subimage region.

Definition at line 1034 of file mlTSubImage.h.

References _ML_TSUBIMG_SUBDOT6.

Referenced by ml::MLKernelToolsApplyFiltering().

◆ setCursorImagePosition() [2/2]

template<typename DATATYPE >
void ml::TSubImageWithCursor< DATATYPE >::setCursorImagePosition ( MLint  x,
MLint  y,
MLint  z 
)
inline

Sets the cursor to the given 3D position (x, y, z) relative to the origin of the complete image region.

This is, the position p=getBox.v1() is considered the origin of the subimage region.

Definition at line 1037 of file mlTSubImage.h.

References _ML_TSUBIMG_SUBDOT3.

◆ setCursorPosition()

template<typename DATATYPE >
void ml::TSubImageWithCursor< DATATYPE >::setCursorPosition ( const DATATYPE *  pointer)
inline

Sets the cursor to the given pointer where pointer is the memory address of the voxel.

Definition at line 1039 of file mlTSubImage.h.

◆ setCursorSubImagePosition() [1/2]

template<typename DATATYPE >
void ml::TSubImageWithCursor< DATATYPE >::setCursorSubImagePosition ( const ImageVector position)
inline

Sets the cursor to the given position relative to the origin of the subimage region.

This is, the position (0,0,0,0,0,0) is considered the origin of the subimage.

Definition at line 1028 of file mlTSubImage.h.

◆ setCursorSubImagePosition() [2/2]

template<typename DATATYPE >
void ml::TSubImageWithCursor< DATATYPE >::setCursorSubImagePosition ( MLint  x,
MLint  y,
MLint  z 
)
inline

Sets the cursor to the given 3D position (x, y, z) relative to the origin of the subimage region.

This is, the position (0,0,0,0,0,0) is considered the origin of the subimage.

Definition at line 1031 of file mlTSubImage.h.

◆ setCursorValue()

template<typename DATATYPE >
void ml::TSubImageWithCursor< DATATYPE >::setCursorValue ( DATATYPE  value)
inline

Sets the voxel value at the cursor position to value.

Definition at line 1109 of file mlTSubImage.h.

◆ setCursorValueWithOffset() [1/2]

template<typename DATATYPE >
void ml::TSubImageWithCursor< DATATYPE >::setCursorValueWithOffset ( const ImageVector offset,
DATATYPE  value 
)
inline

Sets the voxel value at (cursor position + offset) to value.

Definition at line 1111 of file mlTSubImage.h.

◆ setCursorValueWithOffset() [2/2]

template<typename DATATYPE >
void ml::TSubImageWithCursor< DATATYPE >::setCursorValueWithOffset ( MLint  dx,
MLint  dy,
MLint  dz,
DATATYPE  value 
)
inline

Sets voxel value at (cursor position + (dx, dy,dz)) to value.

Definition at line 1113 of file mlTSubImage.h.


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