Main Page   Class Hierarchy   Alphabetical List   Compound List   Compound Members  

prapi::texture::EdgeUtils Class Reference

#include <EdgeDetector.h>

List of all members.


Detailed Description

The EdgeUtils class contains static utility methods for converting between different edge representations.


Static Public Methods

util::Matrix< double > getAngle (const util::Matrix< prapi::graphics::Point< double > > &mat)
 Given a matrix containing gradient magnitudes in x and y directions, return the gradient angle for each pixel.

util::Matrix< double > getMagnitude (const util::Matrix< prapi::graphics::Point< double > > &mat)
 Given a matrix containing gradient magnitudes in x and y directions, return the gradient magnitude for each pixel.

util::Matrix< double > getGradient (const util::Matrix< prapi::graphics::Point< double > > &mat, Gradient gradient)
 Get either of the gradient coordinate layers from a two-layer gradient image.

void setGradient (util::Matrix< prapi::graphics::Point< double > > &matGradient, const util::Matrix< double > &mat, Gradient gradient) throw (EdgeDetectorException&)
 Set a gradient coordinate layer to a value.


Member Function Documentation

util::Matrix<double> prapi::texture::EdgeUtils::getAngle const util::Matrix< prapi::graphics::Point< double > > &    mat [static]
 

Given a matrix containing gradient magnitudes in x and y directions, return the gradient angle for each pixel.

Angles are represented as positive floating point numbers in the range [0,2*M_PI).

Parameters:
mat  gradient magnitudes in x and y directions

util::Matrix<double> prapi::texture::EdgeUtils::getGradient const util::Matrix< prapi::graphics::Point< double > > &    mat,
Gradient    gradient
[static]
 

Get either of the gradient coordinate layers from a two-layer gradient image.

Parameters:
mat  The gradient image.
gradient  The gradient which you want to separate (X or Y).

util::Matrix<double> prapi::texture::EdgeUtils::getMagnitude const util::Matrix< prapi::graphics::Point< double > > &    mat [static]
 

Given a matrix containing gradient magnitudes in x and y directions, return the gradient magnitude for each pixel.

The magnitude of a gradient is equal to the length of the gradient vector.

Parameters:
mat  gradient magnitudes in x and y directions

void prapi::texture::EdgeUtils::setGradient util::Matrix< prapi::graphics::Point< double > > &    matGradient,
const util::Matrix< double > &    mat,
Gradient    gradient
throw (EdgeDetectorException&) [static]
 

Set a gradient coordinate layer to a value.

With this method it is possible to alter gradient coordinates separately.

Parameters:
matGradient  Set gradient in this gradient image
mat  The gradient values
gradient  The gradient direction you want to alter


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.