Prusa Slicer 2.6.0
Loading...
Searching...
No Matches
agg::gamma_threshold Class Reference

#include <src/agg/agg_gamma_functions.h>

Public Member Functions

 gamma_threshold ()
 
 gamma_threshold (double t)
 
void threshold (double t)
 
double threshold () const
 
double operator() (double x) const
 

Private Attributes

double m_threshold
 

Detailed Description

Constructor & Destructor Documentation

◆ gamma_threshold() [1/2]

agg::gamma_threshold::gamma_threshold ( )
inline
55: m_threshold(0.5) {}
double m_threshold
Definition agg_gamma_functions.h:67

◆ gamma_threshold() [2/2]

agg::gamma_threshold::gamma_threshold ( double  t)
inline
56: m_threshold(t) {}

Member Function Documentation

◆ operator()()

double agg::gamma_threshold::operator() ( double  x) const
inline
62 {
63 return (x < m_threshold) ? 0.0 : 1.0;
64 }

References m_threshold.

◆ threshold() [1/2]

double agg::gamma_threshold::threshold ( ) const
inline
59{ return m_threshold; }

References m_threshold.

◆ threshold() [2/2]

void agg::gamma_threshold::threshold ( double  t)
inline
58{ m_threshold = t; }

References m_threshold.

Member Data Documentation

◆ m_threshold

double agg::gamma_threshold::m_threshold
private

Referenced by operator()(), threshold(), and threshold().


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