VisionCpp  0.0.1
Public Member Functions | List of all members
visioncpp::OP_RGBToGREY Struct Reference

This functor performs RGB to GREY convertion following rule: GREY <- 0.299f * R + 0,587f * G + 0.114 * B. More...

#include <OP_RGBToGREY.hpp>

Collaboration diagram for visioncpp::OP_RGBToGREY:

Public Member Functions

float operator() (visioncpp::pixel::F32C3 in)
 

Detailed Description

This functor performs RGB to GREY convertion following rule: GREY <- 0.299f * R + 0,587f * G + 0.114 * B.

Definition at line 26 of file OP_RGBToGREY.hpp.

Member Function Documentation

◆ operator()()

float visioncpp::OP_RGBToGREY::operator() ( visioncpp::pixel::F32C3  in)
inline
Parameters
in- RGB pixel.
Returns
float - greyscale value.

Definition at line 29 of file OP_RGBToGREY.hpp.


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