Blender
V3.3
|
#include <AdvancedFunctions0D.h>
Public Member Functions | |
DensityF0D (double sigma=2) | |
string | getName () const |
int | operator() (Interface0DIterator &iter) |
![]() | |
UnaryFunction0D () | |
virtual | ~UnaryFunction0D () |
Additional Inherited Members | |
![]() | |
typedef double | ReturnedValueType |
![]() | |
double | result |
void * | py_uf0D |
Returns the density of the (result) image evaluated at an Interface0D. This density is evaluated using a pixels square window around the evaluation point and integrating these values using a gaussian.
Definition at line 29 of file AdvancedFunctions0D.h.
|
inline |
Builds the functor from the gaussian sigma value.
sigma | sigma indicates the x value for which the gaussian function is 0.5. It leads to the window size value. (the larger, the smoother) |
Definition at line 36 of file AdvancedFunctions0D.h.
References Freestyle::GaussianFilter::setSigma().
|
inlinevirtual |
Returns the string "DensityF0D"
Reimplemented from Freestyle::UnaryFunction0D< double >.
Definition at line 42 of file AdvancedFunctions0D.h.
|
virtual |
The () operator.
Reimplemented from Freestyle::UnaryFunction0D< double >.
Definition at line 16 of file AdvancedFunctions0D.cpp.
References Freestyle::GaussianFilter::getBound(), Freestyle::Canvas::getInstance(), Freestyle::Interface0D::getProjectedX(), Freestyle::Interface0D::getProjectedY(), Freestyle::GaussianFilter::getSmoothedPixel(), Freestyle::Canvas::height(), image(), Freestyle::GaussianFilter::maskSize(), Freestyle::Canvas::readColorPixels(), Freestyle::UnaryFunction0D< double >::result, and Freestyle::Canvas::width().