|
Blender V4.5
|
#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 21 of file GaussianFilter.h.
| Freestyle::GaussianFilter::GaussianFilter | ( | float | iSigma = 1.0f | ) |
Definition at line 18 of file GaussianFilter.cpp.
References _mask, _sigma, and computeMask().
| Freestyle::GaussianFilter::GaussianFilter | ( | const GaussianFilter & | iBrother | ) |
Definition at line 25 of file GaussianFilter.cpp.
References _bound, _mask, _maskSize, _sigma, and _storedMaskSize.
|
virtual |
Definition at line 46 of file GaussianFilter.cpp.
References _mask.
|
protected |
Definition at line 67 of file GaussianFilter.cpp.
References _bound, _mask, _maskSize, _sigma, _storedMaskSize, computeMaskSize(), exp, 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 51 of file GaussianFilter.cpp.
References floor, maskSize(), and sigma().
Referenced by computeMask().
|
inline |
Definition at line 71 of file GaussianFilter.h.
References _bound.
Referenced by Freestyle::Functions0D::DensityF0D::operator()(), and Freestyle::Functions0D::LocalAverageDepthF0D::operator()().
| float Freestyle::GaussianFilter::getSmoothedPixel | ( | Map * | map, |
| int | x, | ||
| int | y ) |
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 104 of file GaussianFilter.h.
References _bound, _mask, _storedMaskSize, abs, L, 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 66 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 35 of file GaussianFilter.cpp.
References _bound, _mask, _maskSize, _sigma, and _storedMaskSize.
| void Freestyle::GaussianFilter::setSigma | ( | float | sigma | ) |
modifiers
Definition at line 61 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 61 of file GaussianFilter.h.
References _sigma.
Referenced by computeMaskSize(), and setSigma().
|
protected |
Definition at line 31 of file GaussianFilter.h.
Referenced by computeMask(), GaussianFilter(), getBound(), getSmoothedPixel(), and operator=().
|
protected |
Definition at line 30 of file GaussianFilter.h.
Referenced by computeMask(), GaussianFilter(), GaussianFilter(), getSmoothedPixel(), operator=(), and ~GaussianFilter().
|
protected |
Definition at line 34 of file GaussianFilter.h.
Referenced by computeMask(), GaussianFilter(), maskSize(), and operator=().
|
protected |
The sigma value of the gaussian function.
Definition at line 29 of file GaussianFilter.h.
Referenced by computeMask(), GaussianFilter(), GaussianFilter(), operator=(), setSigma(), and sigma().
|
protected |
Definition at line 35 of file GaussianFilter.h.
Referenced by computeMask(), GaussianFilter(), getSmoothedPixel(), and operator=().