#include <mitkIpPic.h>
#include "ipSegmentationError.h"
Go to the source code of this file.
Defines |
#define | ipMITKSegmentationTYPE mitkIpUInt1_t |
#define | ipMITKSegmentationTYPE_ID mitkIpPicUInt |
#define | ipMITKSegmentationBPE 8 |
#define | tagSEGMENTATION_EMPTY "SEGMENTATION_EMPTY" |
#define | AND(TYPE, PIC, VALUE, X, Y) |
#define | OR(TYPE, PIC, VALUE, X, Y) |
#define | XOR(TYPE, PIC, VALUE, X, Y) |
#define | OP(TYPE, PIC, VALUE, X, Y) |
#define | MASK(TYPE, PIC, MSK, VALUE, X, Y, CMD) |
Enumerations |
enum | LogicalOp {
IPSEGMENTATION_OP,
IPSEGMENTATION_AND,
IPSEGMENTATION_OR,
IPSEGMENTATION_XOR,
IPSEGMENTATION_OP,
IPSEGMENTATION_AND,
IPSEGMENTATION_OR,
IPSEGMENTATION_XOR
} |
Functions |
void | ipMITKSegmentationUndoSave (mitkIpPicDescriptor *segmentation) |
mitkIpBool_t | ipMITKSegmentationUndoIsEnabled (mitkIpPicDescriptor *segmentation) |
Define Documentation
#define AND |
( |
|
TYPE, |
|
|
|
PIC, |
|
|
|
VALUE, |
|
|
|
X, |
|
|
|
Y |
|
) |
| |
Value:{ \
TYPE* data = (TYPE*) (PIC)->data; \
mitkIpUInt4_t width = (PIC)->n[0]; \
int temp = (int) data [width * (mitkIpUInt4_t) Y + (mitkIpUInt4_t) X]; \
temp &= (int) VALUE; \
data [width * (mitkIpUInt4_t) Y + (mitkIpUInt4_t) X] = temp; \
} \
Definition at line 51 of file ipSegmentationP.h.
#define ipMITKSegmentationBPE 8 |
#define ipMITKSegmentationTYPE mitkIpUInt1_t |
#define ipMITKSegmentationTYPE_ID mitkIpPicUInt |
#define MASK |
( |
|
TYPE, |
|
|
|
PIC, |
|
|
|
MSK, |
|
|
|
VALUE, |
|
|
|
X, |
|
|
|
Y, |
|
|
|
CMD |
|
) |
| |
#define OP |
( |
|
TYPE, |
|
|
|
PIC, |
|
|
|
VALUE, |
|
|
|
X, |
|
|
|
Y |
|
) |
| |
Value:{ \
TYPE* data = (TYPE*) (PIC)->data; \
mitkIpUInt4_t width = (PIC)->n[0]; \
data [width * (mitkIpUInt4_t) Y + (mitkIpUInt4_t) X] = VALUE; \
} \
Definition at line 78 of file ipSegmentationP.h.
#define OR |
( |
|
TYPE, |
|
|
|
PIC, |
|
|
|
VALUE, |
|
|
|
X, |
|
|
|
Y |
|
) |
| |
Value:{ \
TYPE* data = (TYPE*) (PIC)->data; \
mitkIpUInt4_t width = (PIC)->n[0]; \
int temp = (int) data [width * (mitkIpUInt4_t) Y + (mitkIpUInt4_t) X]; \
temp |= (int) VALUE; \
data [width * (mitkIpUInt4_t) Y + (mitkIpUInt4_t) X] = temp; \
} \
Definition at line 60 of file ipSegmentationP.h.
#define tagSEGMENTATION_EMPTY "SEGMENTATION_EMPTY" |
#define XOR |
( |
|
TYPE, |
|
|
|
PIC, |
|
|
|
VALUE, |
|
|
|
X, |
|
|
|
Y |
|
) |
| |
Value:{ \
TYPE* data = (TYPE*) (PIC)->data; \
mitkIpUInt4_t width = (PIC)->n[0]; \
int temp = (int) data [width * (mitkIpUInt4_t) Y + (mitkIpUInt4_t) X]; \
temp ^= (int) VALUE; \
data [width * (mitkIpUInt4_t) Y + (mitkIpUInt4_t) X] = temp; \
} \
Definition at line 69 of file ipSegmentationP.h.
Enumeration Type Documentation
- Enumerator:
IPSEGMENTATION_OP |
copy of input image
|
IPSEGMENTATION_AND |
logical and operator
|
IPSEGMENTATION_OR |
the or operator
|
IPSEGMENTATION_XOR |
the exclusive-or operator
|
IPSEGMENTATION_OP |
copy of input image
|
IPSEGMENTATION_AND |
logical and operator
|
IPSEGMENTATION_OR |
the or operator
|
IPSEGMENTATION_XOR |
the exclusive-or operator
|
Definition at line 35 of file ipSegmentationP.h.
Function Documentation
mitkIpBool_t ipMITKSegmentationUndoIsEnabled |
( |
mitkIpPicDescriptor * |
segmentation ) |
|
void ipMITKSegmentationUndoSave |
( |
mitkIpPicDescriptor * |
segmentation ) |
|