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

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

#include <OP_FloatToF32C3.hpp>

Collaboration diagram for visioncpp::OP_FloatToU8C1:

Public Member Functions

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

Detailed Description

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

Definition at line 36 of file OP_FloatToF32C3.hpp.

Member Function Documentation

◆ operator()()

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

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

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

Definition at line 40 of file OP_FloatToF32C3.hpp.


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