#include <mitkSubtractImageFilter.h>
Inherits mitkVolumeToVolumeFilter.
Inheritance diagram for mitkSubtractImageFilter:
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) |
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 with Specific subtract mode. Default is MITK_SUBSTRACT_MODE_SUB.
|
|
Constructor. |
|
Print the necessary information about this object for the debugging purpose.
Reimplemented from mitkVolumeToVolumeFilter. |
|
Set the first input volume. (Do NOT call SetInput() directly.) param inData the pointer to the input volume. |
|
Set the second input volume. param inData the pointer to the input volume. |
|
Set the data type for output volume.Default is MITK_FLOAT.
|
|
Set the image subtract mode.Default is MITK_SUBSTRACT_MODE_SUBGRAY. param mode Specify the image subtract mode. |