latest version v1.9 - last update 10 Apr 2010 |
Simple structure used to hold a mask and the correspoinding io-points of the circle. More...
#include <ltiLocalColorFeature.h>
Public Member Functions | |
sliceMask () | |
sliceMask (const int radius, const double angle, const int slices) | |
sliceMask (const sliceMask &other) | |
void | generate (const int radius, const double angle, const int slices) |
sliceMask & | copy (const sliceMask &other) |
sliceMask & | operator= (const sliceMask &other) |
bool | getMeans (const image &img, const location &loc, vector< trgbPixel< float > > &means) const |
const kernel2D< ubyte > & | getMask () const |
Protected Attributes | |
bilinearInterpolator< rgbPixel > | bilin |
kernel2D< ubyte > | mask |
array< int > | ioPts |
int | slices |
int | radius |
Simple structure used to hold a mask and the correspoinding io-points of the circle.
lti::localColorFeature::sliceMask::sliceMask | ( | ) |
Default constructor.
lti::localColorFeature::sliceMask::sliceMask | ( | const int | radius, | |
const double | angle, | |||
const int | slices | |||
) |
Constructor to generate directly the mask.
radius | radius of the mask | |
angle | anglewhich will be usually zero or 2*Pi/slices/2, to shift the mask one half slice from the "normal" one. | |
slices | number of slices |
lti::localColorFeature::sliceMask::sliceMask | ( | const sliceMask & | other | ) |
Copy constructor.
void lti::localColorFeature::sliceMask::generate | ( | const int | radius, | |
const double | angle, | |||
const int | slices | |||
) |
Generate this mask for the given parameters.
Alias for copy member.
Bilinear interpolation functor.
array<int> lti::localColorFeature::sliceMask::ioPts [protected] |
Input/output points.
The size of this "matrix" will always be the 2 x number of rows of the mask, but indexed also with negative values
kernel2D<ubyte> lti::localColorFeature::sliceMask::mask [protected] |
Mask contains the index of the slice for a pixel.
int lti::localColorFeature::sliceMask::radius [protected] |
Radius of the mask.
int lti::localColorFeature::sliceMask::slices [protected] |
Number of slices used.