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

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

Collaboration diagram for DGtal::functors::MagickCast< TValue >:
[legend]

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: