Defines | Enumerations | Functions

ipSegmentationP.h File Reference

#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,
 
)
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

Definition at line 32 of file ipSegmentationP.h.

#define ipMITKSegmentationTYPE   mitkIpUInt1_t

Definition at line 30 of file ipSegmentationP.h.

#define ipMITKSegmentationTYPE_ID   mitkIpPicUInt

Definition at line 31 of file ipSegmentationP.h.

#define MASK (   TYPE,
  PIC,
  MSK,
  VALUE,
  X,
  Y,
  CMD 
)
Value:
{                    \
if (!(MSK) || (((ipMITKSegmentationTYPE *)(MSK)->data)[(PIC)->n[0] * (mitkIpUInt4_t) (Y) + (mitkIpUInt4_t)  (X)] > 0.0)) \
CMD(TYPE, PIC, VALUE, X, Y)              \
}

Definition at line 85 of file ipSegmentationP.h.

#define OP (   TYPE,
  PIC,
  VALUE,
  X,
 
)
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,
 
)
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"

Definition at line 33 of file ipSegmentationP.h.

#define XOR (   TYPE,
  PIC,
  VALUE,
  X,
 
)
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

enum LogicalOp
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 )
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Defines