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

#include <functions.h>

Public Member Functions

double operator() (double x) const
 

Detailed Description

Definition at line 72 of file functions.h.

Member Function Documentation

◆ operator()()

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

Definition at line 73 of file functions.h.

73  {
74  if (x <= 0.0) return 0.0;
75  if (x >= 1.0) return 1.0;
76  return x;
77  }

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