Image Component Library (ICL)
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines
Public Member Functions | Private Attributes
icl::core::FixedConverter Class Reference

Special converter "producing" images with fixed parameters. More...

#include <FixedConverter.h>

Inheritance diagram for icl::core::FixedConverter:
icl::utils::Uncopyable

List of all members.

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

Detailed Description

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.

See also:
icl::Converter

Constructor & Destructor Documentation

icl::core::FixedConverter::FixedConverter ( const ImgParams p,
depth  d = depth8u,
bool  applyToROIOnly = false 
)

Create a new FixedConverter Object with given destination params and depth.

Parameters:
poutput image parameters
doutput image depth
applyToROIOnlydecides wheater to apply the conversion on the whole source image or only on the source images ROI

Member Function Documentation

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.

Parameters:
poSrcsource image
ppoDstdestination 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

Parameters:
applyToROIOnlygiven flag

sets up the order to use when applying several conversion internally

Parameters:
onew operation order
See also:
Converter
void icl::core::FixedConverter::setParams ( const ImgParams p) [inline]

sets up the output image parameters

Parameters:
poutput image parameters
void icl::core::FixedConverter::setScaleMode ( scalemode  scaleMode) [inline]

sets a new scalemode (default is interpolateNN)


Member Data Documentation

destination image depth

Converter to apply conversion.

destination image parameters


The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines