mitkRGBToGrayFilter Class Reference
mitkRGBToGrayFilter - a filter to transfer RGB volume to gray volume
More...
#include <mitkRGBToGrayFilter.h>
Inherits mitkVolumeToVolumeFilter.
Inheritance diagram for mitkRGBToGrayFilter:
[legend]Collaboration diagram for mitkRGBToGrayFilter:
[legend]List of all members.
Detailed Description
mitkRGBToGrayFilter - a filter to transfer RGB volume to gray volume
mitkRGBToGrayFilter is a filter to transfer RGB volume (with 3 channels) to gray volume (with 1 channel). The equation of the transform is:
- where .
- You can set , and by SetCoefficients().
Member Function Documentation
virtual void mitkRGBToGrayFilter::PrintSelf |
( |
ostream & |
os |
) |
[virtual] |
|
|
Print the necessary information about this object for the debugging purpose. - Parameters:
-
| os | The specified ostream to output information. |
Reimplemented from mitkVolumeToVolumeFilter. |
void mitkRGBToGrayFilter::SetCoefficients |
( |
float |
coefRed, |
|
|
float |
coefGreen, |
|
|
float |
coefBlue |
|
) |
|
|
|
Set the transform coefficients. The coefficients will be normalized first so that . The final transform will be: - .
- Parameters:
-
| coefRed | red coefficient |
| coefGreen | green coefficient |
| coefBlue | blue coefficient |
|
void mitkRGBToGrayFilter::SetOutputDataType |
( |
int |
dataType |
) |
[inline] |
|
|
Set data type of the output volume. MITK supports various data type. - Parameters:
-
| data_type | Its valid value and meaning is shown as follows:
MITK_CHAR The data type is char
MITK_UNSIGNED_CHAR The data type is unsigned char
MITK_SHORT The data type is short
MITK_UNSIGNED_SHORT The data type is unsigned short
MITK_INT The data type is int
MITK_UNSIGNED_INT The data type is unsigned int
MITK_LONG The data type is long
MITK_UNSIGNED_LONG The data type is unsigned long
MITK_FLOAT The data type is float
MITK_DOUBLE The data type is double
|
|
The documentation for this class was generated from the following file:
Generated on Tue Feb 25 15:05:43 2014 for MITK (Medical Imaging ToolKit) by
1.4.3