tesseract  4.0.0-1-g2a2b
tesseract::ClipGFunc Struct Reference

#include <functions.h>

Public Member Functions

double operator() (double x) const
 

Detailed Description

Definition at line 116 of file functions.h.

Member Function Documentation

◆ operator()()

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

Definition at line 117 of file functions.h.

117  {
118  if (x <= -1.0) return -1.0;
119  if (x >= 1.0) return 1.0;
120  return x;
121  }

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