|
Blender
V3.3
|
#include <GaussianFilter.h>
Public Member Functions | |
| GaussianFilter (float iSigma=1.0f) | |
| GaussianFilter (const GaussianFilter &) | |
| GaussianFilter & | operator= (const GaussianFilter &) |
| virtual | ~GaussianFilter () |
| template<class Map > | |
| float | getSmoothedPixel (Map *map, int x, int y) |
| float | sigma () const |
| int | maskSize () const |
| int | getBound () |
| void | setSigma (float sigma) |
Static Public Member Functions | |
| static int | computeMaskSize (float sigma) |
Protected Member Functions | |
| void | computeMask () |
Protected Attributes | |
| float | _sigma |
| float * | _mask |
| int | _bound |
| int | _maskSize |
| int | _storedMaskSize |
Definition at line 23 of file GaussianFilter.h.
| Freestyle::GaussianFilter::GaussianFilter | ( | float | iSigma = 1.0f | ) |
Definition at line 14 of file GaussianFilter.cpp.
References _mask, _sigma, and computeMask().
| Freestyle::GaussianFilter::GaussianFilter | ( | const GaussianFilter & | iBrother | ) |
Definition at line 21 of file GaussianFilter.cpp.
References _bound, _mask, _maskSize, _sigma, and _storedMaskSize.
|
virtual |
Definition at line 42 of file GaussianFilter.cpp.
References _mask.
|
protected |
Definition at line 63 of file GaussianFilter.cpp.
References _bound, _mask, _maskSize, _sigma, _storedMaskSize, computeMaskSize(), exp(), float(), M_PI, and norm().
Referenced by GaussianFilter(), and setSigma().
|
static |
Compute the mask size and returns the REAL mask size ((2*_maskSize)-1) This method is provided for convenience.
Definition at line 47 of file GaussianFilter.cpp.
References blender::math::floor(), maskSize(), and sigma().
Referenced by computeMask().
|
inline |
Definition at line 75 of file GaussianFilter.h.
References _bound.
Referenced by Freestyle::Functions0D::DensityF0D::operator()(), and Freestyle::Functions0D::LocalAverageDepthF0D::operator()().
Returns the value for pixel x,y of image "map" after a gaussian blur, made using the sigma value. The sigma value determines the mask size (~ 2 x sigma).
| map | The image we wish to work on. The Map template must implement the following methods:
|
| x | The abscissa of the pixel where we want to evaluate the gaussian blur. |
| y | The ordinate of the pixel where we want to evaluate the gaussian blur. |
Definition at line 110 of file GaussianFilter.h.
References _bound, _mask, _storedMaskSize, blender::math::abs(), L, map, w(), Freestyle::x, and y.
Referenced by Freestyle::GaussianPyramid::BuildPyramid(), Freestyle::Canvas::loadMap(), Freestyle::Functions0D::DensityF0D::operator()(), and Freestyle::Functions0D::LocalAverageDepthF0D::operator()().
|
inline |
Definition at line 70 of file GaussianFilter.h.
References _maskSize.
Referenced by computeMaskSize(), Freestyle::Functions0D::DensityF0D::operator()(), and Freestyle::Functions0D::LocalAverageDepthF0D::operator()().
| GaussianFilter & Freestyle::GaussianFilter::operator= | ( | const GaussianFilter & | iBrother | ) |
Definition at line 31 of file GaussianFilter.cpp.
References _bound, _mask, _maskSize, _sigma, and _storedMaskSize.
modifiers
Definition at line 57 of file GaussianFilter.cpp.
References _sigma, computeMask(), and sigma().
Referenced by Freestyle::Functions0D::DensityF0D::DensityF0D(), and Freestyle::Functions0D::LocalAverageDepthF0D::LocalAverageDepthF0D().
|
inline |
accessors
Definition at line 65 of file GaussianFilter.h.
References _sigma.
Referenced by computeMaskSize(), and setSigma().
|
protected |
Definition at line 33 of file GaussianFilter.h.
Referenced by computeMask(), GaussianFilter(), getBound(), getSmoothedPixel(), and operator=().
|
protected |
Definition at line 32 of file GaussianFilter.h.
Referenced by computeMask(), GaussianFilter(), getSmoothedPixel(), operator=(), and ~GaussianFilter().
|
protected |
Definition at line 36 of file GaussianFilter.h.
Referenced by computeMask(), GaussianFilter(), maskSize(), and operator=().
|
protected |
The sigma value of the gaussian function.
Definition at line 31 of file GaussianFilter.h.
Referenced by computeMask(), GaussianFilter(), operator=(), setSigma(), and sigma().
|
protected |
Definition at line 37 of file GaussianFilter.h.
Referenced by computeMask(), GaussianFilter(), getSmoothedPixel(), and operator=().