mimas::slap_tool Class Reference

< A tool. Not derived from anything. More...

#include <slap_tool.h>

Collaboration diagram for mimas::slap_tool:

Collaboration graph
[legend]
List of all members.

Public Types

typedef string_el_ptr_list::iterator string_it
typedef boost::numeric::ublas::vector<
double
Vector

Public Member Functions

 slap_tool (void)
 Default constructor.
 slap_tool (double d)
line_ptr_list findStraightLines (edge_string_ptr_list &es_list)
 Return a list of straight lines from a given list of edge strings.

Detailed Description

< A tool. Not derived from anything.

use this tool to turn edge strings into lists of straight line segments. Algorithm here is based on the original by Dr xxxx (can fbc provide this reference please?). Implementation by stu. Sun 13 Oct 2002 14:45:26 CEST

Algorithm takes a parameter- anglesigma which is used to determine how the edge strings should be broken into straight line segments. A high value means that only large changes in the angle of an edge string will be encorporated into a single straight line, therefore producing a very approximate set of output lines (blocky). With a lower value the straight lines more closely follow the edge strings and the output will look more like the input. (smoother)

Author:
$
Date:
$
Header
/cvs/mimas2/include/slap_tool.h,v 1.1.1.1 2005/08/09 15:37:45 engmb Exp

Definition at line 35 of file slap_tool.h.


Member Typedef Documentation

typedef string_el_ptr_list::iterator mimas::slap_tool::string_it

Definition at line 42 of file slap_tool.h.

typedef boost::numeric::ublas::vector< double > mimas::slap_tool::Vector

Definition at line 43 of file slap_tool.h.


Constructor & Destructor Documentation

mimas::slap_tool::slap_tool ( void   )  [inline]

Default constructor.

Sets a default anglesigma value. NOTE: this value needs to be small otherwise the algorithm fails : as this implementation requires that tan(anglesigma) is : approx= anglesigma

Definition at line 51 of file slap_tool.h.

mimas::slap_tool::slap_tool ( double  d  )  [inline]

Definition at line 56 of file slap_tool.h.


Member Function Documentation

line_ptr_list mimas::slap_tool::findStraightLines ( edge_string_ptr_list es_list  ) 

Return a list of straight lines from a given list of edge strings.

A suitable list of edge strings is produced by, for example, the canny_tool.


The documentation for this class was generated from the following file:
[GNU/Linux] [Qt] [Mesa] [STL] [Lapack] [Boost] [Magick++] [Xalan-C and Xerces-C] [doxygen] [graphviz] [FFTW] [popt] [xine] [Gnuplot] [gnu-arch] [gcc] [gstreamer] [autoconf/automake/make] [freshmeat.net] [opensource.org] [sourceforge.net] [MMVL]
mimas 2.1 - Copyright Mon Oct 30 11:31:46 2006, Bala Amavasai, Stuart Meikle, Arul Selvan, Fabio Caparrelli, Jan Wedekind, Manuel Boissenin, ...