FConvert2DImageToPixeltypeO< O > Struct Template Reference

functor to convert an image with an abitrary pixel type to single floating point pixels More...

#include <mia/2d/image.hh>

Inheritance diagram for FConvert2DImageToPixeltypeO< O >:
[legend]
Collaboration diagram for FConvert2DImageToPixeltypeO< O >:
[legend]

Public Member Functions

template<typename T >
T2DImage< O > operator() (const T2DImage< T > &image) const
 
T2DImage< O > operator() (const C2DImage &image) const
 
T2DImage< O > operator() (P2DImage image) const
 

Additional Inherited Members

- Public Types inherited from TFilter< T2DImage< O > >
typedef T2DImage< O > result_type
 defines the return type of the filter function More...
 

Detailed Description

template<typename O>
struct FConvert2DImageToPixeltypeO< O >

functor to convert an image with an abitrary pixel type to single floating point pixels

This functor provides the often used funcionality to convert a 2D image from any pixel representation to a pixel type O representation. The data is just copied. For conversion with scaling and proepry clamping you should use the convert filter provided through C2DFilterPluginHandler.

Template Parameters
Ooutput pixel type

Definition at line 479 of file 2d/image.hh.

Member Function Documentation

◆ operator()() [1/3]

template<typename O >
template<typename T >
T2DImage<O> FConvert2DImageToPixeltypeO< O >::operator() ( const T2DImage< T > &  image) const
inline

Operator to do the actual conversion.

Parameters
imageinput image
Returns
the image converted floating point pixel values

Definition at line 487 of file 2d/image.hh.

References T2DImage< T >::begin(), T2DImage< T >::end(), and C2DImage::get_size().

◆ operator()() [2/3]

template<typename O >
T2DImage<O> FConvert2DImageToPixeltypeO< O >::operator() ( const C2DImage image) const
inline

Operator to do redirect the base class representation through mia::filter

Parameters
imageinput image
Returns
the image converted floating point pixel values

Definition at line 499 of file 2d/image.hh.

References filter().

◆ operator()() [3/3]

template<typename O >
T2DImage<O> FConvert2DImageToPixeltypeO< O >::operator() ( P2DImage  image) const
inline

Operator to do redirect the pointer representation through mia::filter

Parameters
imageinput image pointer
Returns
the image converted floating point pixel values

Definition at line 509 of file 2d/image.hh.

References filter().


The documentation for this struct was generated from the following file: