Image Component Library (ICL)
|
Utility class for the parable-based chromaticity segmentation. More...
#include <Parable.h>
Public Member Functions | |
Parable () | |
create an empty parable (a=b=c=0) More... | |
Parable (float a, float b, float c) | |
create a parable with given parameters a,b and c More... | |
Parable (utils::Point32f p1, utils::Point32f p2, utils::Point32f p3) | |
create a parable with given 3 points More... | |
float | operator() (float x) const |
Evaluate this parable at a given location x. More... | |
void | show () const |
shows this parable to std::out More... | |
Public Attributes | |
float | a |
float | b |
float | c |
Utility class for the parable-based chromaticity segmentation.
A parabolic function is defined by 3 parameters a,b and c:
Parables can be created by given parameters a,b and c or by 3 given points.
|
inline |
create an empty parable (a=b=c=0)
|
inline |
create a parable with given parameters a,b and c
|
inline |
create a parable with given 3 points
To avoid numerical problems, the x coordinates of the given points are increased by a small value (0.00000001 - 0.00000003). This is harmless, as the Parable struct is used for the ChromaWidget, where given input point are defined by relative widget coordination which much less resolution
|
inline |
Evaluate this parable at a given location x.
!< third parameter a
|
inline |
shows this parable to std::out
float icl::core::Parable::a |
float icl::core::Parable::b |
!< first parameter a
float icl::core::Parable::c |
!< second parameter a