Output filter that converts grayscale images to color via a colormap. More...
#include <Transport/ColorizeOfilt.H>
Public Member Functions | |
ColorizeOfilt (OptionManager &mgr, const std::string &descrName="Grayscale-to-colorized output filter", const std::string &tagName="ColorizeOfilt") | |
Constructor. | |
virtual | ~ColorizeOfilt () |
Destructor. | |
Protected Member Functions | |
virtual void | filterFrame (FrameOstream &dest, const GenericFrame &frame, const std::string &shortname, const FrameInfo &auxinfo) |
Convert frame to grayscale luminance and pass on to dest. | |
Protected Attributes | |
ColorMap | itsColorMap |
Output filter that converts grayscale images to color via a colormap.
RGB and other color images pass through untouched
Definition at line 46 of file ColorizeOfilt.H.
ColorizeOfilt::ColorizeOfilt | ( | OptionManager & | mgr, | |
const std::string & | descrName = "Grayscale-to-colorized output filter" , |
|||
const std::string & | tagName = "ColorizeOfilt" | |||
) |
Constructor.
Definition at line 51 of file ColorizeOfilt.C.
ColorizeOfilt::~ColorizeOfilt | ( | ) | [virtual] |
Destructor.
Definition at line 60 of file ColorizeOfilt.C.
void ColorizeOfilt::filterFrame | ( | FrameOstream & | dest, | |
const GenericFrame & | frame, | |||
const std::string & | shortname, | |||
const FrameInfo & | auxinfo | |||
) | [protected, virtual] |
Convert frame to grayscale luminance and pass on to dest.
Implements FrameOfilt.
Definition at line 64 of file ColorizeOfilt.C.
References GenericFrame::asGrayF32(), GenericFrame::asGrayU8(), GenericFrame::asVideo(), colorize(), FLOAT_NORM_0_255, GenericFrame::floatFlags(), GenericFrame::frameSpec(), GenericFrameSpec::getDescription(), VideoFrame::getMode(), GenericFrame::GRAY_F32, GenericFrame::GRAY_U8, GenericFrame::nativeType(), GenericFrame::NONE, normalizeFloat(), GenericFrame::RGB_F32, GenericFrame::RGB_U8, FrameOstream::writeFrame(), and FrameOstream::writeRGB().