tesseract  5.0.0-alpha-619-ge9db
tesseract::ClipGFunc Struct Reference

#include <functions.h>

Public Member Functions

double operator() (double x) const
 

Detailed Description

Definition at line 99 of file functions.h.

Member Function Documentation

◆ operator()()

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

Definition at line 100 of file functions.h.

100  {
101  if (x <= -1.0) return -1.0;
102  if (x >= 1.0) return 1.0;
103  return x;
104  }

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