MeVisLab Toolbox Reference
mlBitImage.h File Reference
#include "MLToolsSystem.h"
#include "mlModuleIncludes.h"
#include "mlWrapperMacros.h"

Go to the source code of this file.

Classes

class  ml::BitImage
 Class to manage a binary image. More...
 

Namespaces

namespace  ml
 Main documentation file for ML users and developers.
 

Macros

#define ML_BIT_IMG_SHIFT   5l
 Power of 2 to get bit size of word of bit image, e.g. 5 for 32 bit words.
 
#define ML_BIT_IMG_ALL_BITS   0xffffffffl
 Bit mask specifying all bits in bit image word e.g. 32 set bits for 32 bit words.
 
#define ML_BIT_IMG_INDEX_BITS   0x1fl
 Bits to mask lower ML_BIT_IMG_SHIFT bits, e.g. 0x1f = 31 for 2^5 = 32 bits in word.
 
#define ML_BIT_IMG_LOW_BIT   0x00000001l
 Bit image word with lowest bit set.
 
#define ML_BIT_IMG_HIGH_BIT   0x80000000l
 Bit image word with highest bit set.
 
#define ML_BIT_IMG_DATA_TYPE   MLuint32
 Data type used for words in bit image (even on 64 bit versions).
 
#define ML_BIT_IMG_BIT_IDX_TYPE   MLuint64
 Data type used for an index to the current bit inside of the image; note that this may exceed the address space type size_t on 32 bit systems if a BitImage with more than 4GB is created which is possible, because technically up to 32GB (8*4GByte) could be reached as size.
 

Macro Definition Documentation

◆ ML_BIT_IMG_ALL_BITS

#define ML_BIT_IMG_ALL_BITS   0xffffffffl

Bit mask specifying all bits in bit image word e.g. 32 set bits for 32 bit words.

Definition at line 44 of file mlBitImage.h.

Referenced by ml::BitImage::clear(), and ml::BitImage::clearCursorValue().

◆ ML_BIT_IMG_BIT_IDX_TYPE

#define ML_BIT_IMG_BIT_IDX_TYPE   MLuint64

Data type used for an index to the current bit inside of the image; note that this may exceed the address space type size_t on 32 bit systems if a BitImage with more than 4GB is created which is possible, because technically up to 32GB (8*4GByte) could be reached as size.

Definition at line 62 of file mlBitImage.h.

◆ ML_BIT_IMG_DATA_TYPE

#define ML_BIT_IMG_DATA_TYPE   MLuint32

◆ ML_BIT_IMG_HIGH_BIT

#define ML_BIT_IMG_HIGH_BIT   0x80000000l

Bit image word with highest bit set.

Definition at line 53 of file mlBitImage.h.

◆ ML_BIT_IMG_INDEX_BITS

#define ML_BIT_IMG_INDEX_BITS   0x1fl

◆ ML_BIT_IMG_LOW_BIT

◆ ML_BIT_IMG_SHIFT