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. More... | |
void | apply (const ImgBase *poSrc, ImgBase **ppoDst) |
Converts the source image into the given destination image. More... | |
void | setApplyToROIOnly (bool applyToROIOnly) |
set up wheater to apply on the source image or on the source images ROI More... | |
void | setParams (const ImgParams &p) |
sets up the output image parameters More... | |
void | setOperationOrder (Converter::oporder o) |
sets up the order to use when applying several conversion internally More... | |
void | setScaleMode (scalemode scaleMode) |
sets a new scalemode (default is interpolateNN) More... | |
Private Attributes | |
ImgParams | m_oParams |
destination image parameters More... | |
Converter | m_oConverter |
Converter to apply conversion. More... | |
depth | m_eDepth |
destination image depth More... | |
Additional Inherited Members | |
Protected Member Functions inherited from icl::utils::Uncopyable | |
Uncopyable () | |
Empty base constructor. More... | |
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 |
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 |
|
inline |
set up wheater to apply on the source image or on the source images ROI
applyToROIOnly | given flag |
|
inline |
sets up the order to use when applying several conversion internally
o | new operation order |
|
inline |
sets up the output image parameters
p | output image parameters |
|
inline |
sets a new scalemode (default is interpolateNN)
|
private |
destination image depth
|
private |
destination image parameters