Main Page   Class Hierarchy   Alphabetical List   Compound List   Compound Members  

prapi::texture::EdgeThinner Class Reference

#include <EdgeDetector.h>

Inheritance diagram for prapi::texture::EdgeThinner:

prapi::ImageTransform< double, graphics::Point< double > > List of all members.

Detailed Description

The EdgeThinner class is an image transform that makes thin edges.

A non-maximum suppression algorithm is used that looks for edge pixels. Once it finds one, it tries to find a stronger one in the direction of the edge gradient at the pixel. If a larger gradient magnitude value is found within the given radius, the edge pixel is set to zero.


Public Methods

 EdgeThinner (unsigned int radius)
 Create a new EdgeThinner that uses the given radius for non-maximum suppression.

util::Matrix< double > getTransformedImage (const util::Matrix< graphics::Point< double > > &gradients) throw (ImageTransformException&)

Static Public Methods

util::Matrix< double > suppressNonMaxima (const util::Matrix< graphics::Point< double > > &gradients, unsigned int radius)
 Suppress non-maximum gradien values.


Member Function Documentation

util::Matrix<double> prapi::texture::EdgeThinner::suppressNonMaxima const util::Matrix< graphics::Point< double > > &    gradients,
unsigned int    radius
[static]
 

Suppress non-maximum gradien values.

Gradient angles must be in the range [0,2*M_PI). Otherwise the behavior is undefined.

Parameters:
gradients  gradient angles and magnitudes
radius  the search radius


The documentation for this class was generated from the following file:
Documentation generated on 11.09.2003 with Doxygen.
The documentation is copyrighted material.
Copyright © Topi Mäenpää 2003. All rights reserved.