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

#include <functions.h>

Public Member Functions

double operator() (double x) const
 

Detailed Description

Definition at line 89 of file functions.h.

Member Function Documentation

◆ operator()()

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

Definition at line 90 of file functions.h.

90  {
91  if (x <= 0.0) return 0.0;
92  if (x >= 1.0) return 1.0;
93  return x;
94  }

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