tesseract  5.0.0
tesseract::ClipFFunc Struct Reference

#include <functions.h>

Public Member Functions

TFloat operator() (TFloat x) const
 

Detailed Description

Definition at line 85 of file functions.h.

Member Function Documentation

◆ operator()()

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

Definition at line 86 of file functions.h.

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

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