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

It converts uchar to float converting range [0, 255] to [0.0f, 1.0f]. More...

#include <OP_FloatToF32C3.hpp>

Collaboration diagram for visioncpp::OP_U8C1ToFloat:

Public Member Functions

float operator() (visioncpp::pixel::U8C1 t)
 It converts uchar to float converting range [0, 255] to [0.0f, 1.0f]. More...
 

Detailed Description

It converts uchar to float converting range [0, 255] to [0.0f, 1.0f].

Definition at line 46 of file OP_FloatToF32C3.hpp.

Member Function Documentation

◆ operator()()

float visioncpp::OP_U8C1ToFloat::operator() ( visioncpp::pixel::U8C1  t)
inline

It converts uchar to float converting range [0, 255] to [0.0f, 1.0f].

Parameters
t- uchar of 1 channel
Returns
float - float of 1 channels

Definition at line 50 of file OP_FloatToF32C3.hpp.


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