tesseract v5.3.3.20231005
tesseract::ClipGFunc Struct Reference

#include <functions.h>

Public Member Functions

TFloat operator() (TFloat x) const
 

Detailed Description

Definition at line 124 of file functions.h.

Member Function Documentation

◆ operator()()

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

Definition at line 125 of file functions.h.

125 {
126 if (x <= -1) {
127 return -1;
128 }
129 if (x >= 1) {
130 return 1;
131 }
132 return x;
133 }

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