tesseract  5.0.0
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.0) {
127  return -1.0;
128  }
129  if (x >= 1.0) {
130  return 1.0;
131  }
132  return x;
133  }

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