Image Component Library (ICL)
|
Special converter "producing" images with fixed parameters. More...
#include <FixedConverter.h>
Public Member Functions | |
FixedConverter (const ImgParams &p, depth d=depth8u, bool applyToROIOnly=false) | |
Create a new FixedConverter Object with given destination params and depth. | |
void | apply (const ImgBase *poSrc, ImgBase **ppoDst) |
Converts the source image into the given destination image. | |
void | setApplyToROIOnly (bool applyToROIOnly) |
set up wheater to apply on the source image or on the source images ROI | |
void | setParams (const ImgParams &p) |
sets up the output image parameters | |
void | setOperationOrder (Converter::oporder o) |
sets up the order to use when applying several conversion internally | |
void | setScaleMode (scalemode scaleMode) |
sets a new scalemode (default is interpolateNN) | |
Private Attributes | |
ImgParams | m_oParams |
destination image parameters | |
Converter | m_oConverter |
Converter to apply conversion. | |
depth | m_eDepth |
destination image depth |
Special converter "producing" images with fixed parameters.
This class can be used to convert images with arbitrary params and depth to well defined fixed params and depth. Its functionality bases on the icl::Converter class which is created as a member of the FixedConverter.
icl::core::FixedConverter::FixedConverter | ( | const ImgParams & | p, |
depth | d = depth8u , |
||
bool | applyToROIOnly = false |
||
) |
Create a new FixedConverter Object with given destination params and depth.
p | output image parameters |
d | output image depth |
applyToROIOnly | decides wheater to apply the conversion on the whole source image or only on the source images ROI |
void icl::core::FixedConverter::apply | ( | const ImgBase * | poSrc, |
ImgBase ** | ppoDst | ||
) |
Converts the source image into the given destination image.
The given destination image pointer is adapted in its depth and parameters before apply function of the Converter member is called.
poSrc | source image |
ppoDst | destination image, null is not allowed! If it points to NULL, the a appropriate destination image is created at *ppoDst else it is adapted to the parameters of the FixedConverter object |
void icl::core::FixedConverter::setApplyToROIOnly | ( | bool | applyToROIOnly | ) | [inline] |
set up wheater to apply on the source image or on the source images ROI
applyToROIOnly | given flag |
void icl::core::FixedConverter::setOperationOrder | ( | Converter::oporder | o | ) | [inline] |
sets up the order to use when applying several conversion internally
o | new operation order |
void icl::core::FixedConverter::setParams | ( | const ImgParams & | p | ) | [inline] |
sets up the output image parameters
p | output image parameters |
void icl::core::FixedConverter::setScaleMode | ( | scalemode | scaleMode | ) | [inline] |
sets a new scalemode (default is interpolateNN)
depth icl::core::FixedConverter::m_eDepth [private] |
destination image depth
Converter to apply conversion.
destination image parameters