Main Page | Namespace List | Class Hierarchy | Class List | Directories | File List | Namespace Members | Class Members

mitkSubtractImageFilter Class Reference

mitkSubtractImageFilter - a concrete class for subtraction of two volumes More...

#include <mitkSubtractImageFilter.h>

Inherits mitkVolumeToVolumeFilter.

Inheritance diagram for mitkSubtractImageFilter:

Inheritance graph
Collaboration diagram for mitkSubtractImageFilter:

Collaboration graph
List of all members.

Public Member Functions

virtual void PrintSelf (ostream &os)
 mitkSubtractImageFilter (int mode)
 mitkSubtractImageFilter ()
void SetInput1 (mitkVolume *inData)
void SetInput2 (mitkVolume *inData)
void SetSubtractMode (int mode)
void SetOutputDatatype (int dataType)

Detailed Description

mitkSubtractImageFilter - a concrete class for subtraction of two volumes

mitkSubtractImageFilter is a concrete class for subtraction of two volumes. mitkSubtractImageFilter can only handle gray level images in same size. This class provide several subtract modes,including SubGray,AddGray,SubColor AddColor, GridGray. The particular functions of these modes is list below:

Output Channels Remarks

SubGray : Output = Input1 - Input2 1

AddGray : Output = Input1 + Input2 1

Output(R) = Input1 SubColor: Output(G) = Input1 - Input2 3 Output(B) = 255 - Input2

Output(R) = Input1 AddColor: Output(G) = 0 3 Output(B) = Input2

GridGray: 3 Input1 and Input2 are alternately presented on 4x4 grid. Usage: mitkSubtractImageFilter* subtract = new mitkSubtractImageFilter(MITK_SUBSTRACT_MODE_SUBCOLOR); subtract->SetInput1(volume1); subtract->SetInput2(volume2); subtract->Run(); mitkVolume* outVolume = subtract->GetOutput();

Constructor & Destructor Documentation

mitkSubtractImageFilter::mitkSubtractImageFilter int  mode  ) 

Constructor with Specific subtract mode. Default is MITK_SUBSTRACT_MODE_SUB.

mode Specify the image subtract mode.

mitkSubtractImageFilter::mitkSubtractImageFilter  ) 


Member Function Documentation

virtual void mitkSubtractImageFilter::PrintSelf ostream &  os  )  [virtual]

Print the necessary information about this object for the debugging purpose.

os The specified ostream to output information.

Reimplemented from mitkVolumeToVolumeFilter.

void mitkSubtractImageFilter::SetInput1 mitkVolume inData  )  [inline]

Set the first input volume. (Do NOT call SetInput() directly.) param inData the pointer to the input volume.

void mitkSubtractImageFilter::SetInput2 mitkVolume inData  )  [inline]

Set the second input volume. param inData the pointer to the input volume.

void mitkSubtractImageFilter::SetOutputDatatype int  dataType  )  [inline]

Set the data type for output volume.Default is MITK_FLOAT.

dataType Specify the output volume's data type.

void mitkSubtractImageFilter::SetSubtractMode int  mode  )  [inline]

Set the image subtract mode.Default is MITK_SUBSTRACT_MODE_SUBGRAY. param mode Specify the image subtract mode.

The documentation for this class was generated from the following file:
Generated on Tue Feb 25 15:06:12 2014 for MITK (Medical Imaging ToolKit) by  doxygen 1.4.3