tesseract v5.3.3.20231005
tesseract::ClipFFunc Struct Reference

#include <functions.h>

Public Member Functions

TFloat operator() (TFloat x) const
 

Detailed Description

Definition at line 85 of file functions.h.

Member Function Documentation

◆ operator()()

TFloat tesseract::ClipFFunc::operator() ( TFloat  x) const
inline

Definition at line 86 of file functions.h.

86 {
87 if (x <= 0) {
88 return 0;
89 }
90 if (x >= 1) {
91 return 1;
92 }
93 return x;
94 }

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