DGtal  1.3.beta
Public Member Functions | Data Fields
DGtal::functors::MagickCast< TValue > Struct Template Reference

#include <DGtal/io/readers/MagickReader.h>

Public Member Functions

TValue operator() (const Color &col) const
 

Data Fields

Cast< TValue > myCast
 

Detailed Description

template<typename TValue>
struct DGtal::functors::MagickCast< TValue >

Definition at line 76 of file MagickReader.h.

Member Function Documentation

◆ operator()()

template<typename TValue >
TValue DGtal::functors::MagickCast< TValue >::operator() ( const Color col) const
inline

Definition at line 79 of file MagickReader.h.

80  {
81  return myCast( col.red() + col.green() + col.blue() );
82  }

References DGtal::Color::blue(), DGtal::Color::green(), DGtal::functors::MagickCast< TValue >::myCast, and DGtal::Color::red().

Field Documentation

◆ myCast

template<typename TValue >
Cast<TValue> DGtal::functors::MagickCast< TValue >::myCast

Definition at line 78 of file MagickReader.h.

Referenced by DGtal::functors::MagickCast< TValue >::operator()().


The documentation for this struct was generated from the following file:
DGtal::functors::MagickCast::myCast
Cast< TValue > myCast
Definition: MagickReader.h:78