tesseract  4.1.0
tesseract::ClipGFunc Struct Reference

#include <functions.h>

Public Member Functions

double operator() (double x) const
 

Detailed Description

Definition at line 130 of file functions.h.

Member Function Documentation

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

Definition at line 131 of file functions.h.

131  {
132  if (x <= -1.0) return -1.0;
133  if (x >= 1.0) return 1.0;
134  return x;
135  }

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