LTI-Lib latest version v1.9 - last update 10 Apr 2010

lti::fastLineExtraction::parameters Class Reference

the parameters for the class fastLineExtraction More...

#include <ltiFastLineExtraction.h>

Inheritance diagram for lti::fastLineExtraction::parameters:
Inheritance graph
[legend]
Collaboration diagram for lti::fastLineExtraction::parameters:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 parameters ()
 parameters (const parameters &other)
 ~parameters ()
const char * getTypeName () const
parameterscopy (const parameters &other)
parametersoperator= (const parameters &other)
virtual functor::parametersclone () const
virtual bool write (ioHandler &handler, const bool complete=true) const
virtual bool read (ioHandler &handler, const bool complete=true)

Public Attributes

float maxQuantizationError
int segmentTolerance
int maxSegmentGap
int minLineLen
int minSegmLen

Detailed Description

the parameters for the class fastLineExtraction


Constructor & Destructor Documentation

lti::fastLineExtraction::parameters::parameters (  ) 

default constructor

Reimplemented from lti::featureExtractor::parameters.

lti::fastLineExtraction::parameters::parameters ( const parameters other  ) 

copy constructor

Parameters:
other the parameters object to be copied

Reimplemented from lti::featureExtractor::parameters.

lti::fastLineExtraction::parameters::~parameters (  )  [virtual]

destructor

Reimplemented from lti::featureExtractor::parameters.


Member Function Documentation

virtual functor::parameters* lti::fastLineExtraction::parameters::clone (  )  const [virtual]

returns a pointer to a clone of the parameters

Reimplemented from lti::featureExtractor::parameters.

parameters& lti::fastLineExtraction::parameters::copy ( const parameters other  ) 

copy the contents of a parameters object

Parameters:
other the parameters object to be copied
Returns:
a reference to this parameters object

Reimplemented from lti::featureExtractor::parameters.

const char* lti::fastLineExtraction::parameters::getTypeName (  )  const [virtual]

returns name of this type

Reimplemented from lti::featureExtractor::parameters.

parameters& lti::fastLineExtraction::parameters::operator= ( const parameters other  ) 

copy the contents of a parameters object

Parameters:
other the parameters object to be copied
Returns:
a reference to this parameters object
virtual bool lti::fastLineExtraction::parameters::read ( ioHandler handler,
const bool  complete = true 
) [virtual]

read the parameters from the given ioHandler

Parameters:
handler the ioHandler to be used
complete if true (the default) the enclosing begin/end will be also written, otherwise only the data block will be written.
Returns:
true if write was successful

Reimplemented from lti::functor::parameters.

virtual bool lti::fastLineExtraction::parameters::write ( ioHandler handler,
const bool  complete = true 
) const [virtual]

write the parameters in the given ioHandler

Parameters:
handler the ioHandler to be used
complete if true (the default) the enclosing begin/end will be also written, otherwise only the data block will be written.
Returns:
true if write was successful

Reimplemented from lti::functor::parameters.


Member Data Documentation

This threshold constant defines the maximum mismatch between the found line segments and the estimated analog line.

The segment is discarded if its starting/finishing pixel differs more than maxQuantizationError from the estimated analog line. If this value is greater than 1.0 the line detection will also extract lines that are not completely straight, which may be useful for estimation of lines. possible values are

  0.5 < maxQuantizationError
  

A high maxQuantizationError value will extract longer lines at the cost of precision. Low values result in better pixel matching but also in shorter lines. Best compromise between pixel matching and good detection is a value between 0.6 and 0.7 (the default is 1.0)

The maximum gap two line segments may have and still be considered segments of the same line.

This parameter changes the size of the searching window for line segments. Small sizes allow fast processing but may also cause detection failures (as well as too high values) A maxSegmentGap of 1 will only group contiguous segments to a line. possible values are

  maxSegmentGap >= 1 (pixel)
  

Higher maxSegmentGap values also allow extraction of non-contiguous lines such as found in corrupted images. The default is 1

The minimum length a line must have to get extracted.

The parameter minLineLen is used as threshold, smaller lines will be ignored. possible values are

  minLineLen >= 3 (pixel)
  

Values greater than 3 will strongly decrease the number of extracted lines. The default is 3

The minimum length a line segment must have to be detected.

The parameter minSegmLen is used as threshold, smaller segments will be ignored. Values greater than 2 strongly decrease the number of detected segments and the size of the segment lists. possible values are

  minSegmLen >= 2 (pixel)
  

Values greater than 2 result in smaller segment lists and therefore allow slightly faster line detection. But mostly good line detection is more important than a small speedup, so don't change this parameter unless there is a good reason to do so. The default is 2

This constant defines how much the value of two adjacent pixels may differ and still be considered pixels of the same segment.

A segmentTolerance of 0 will only group pixels of the same value to one segment. When analyzing binary maps such as edge-images a value of 0 should be used. possible values are

  0 <= segmentTolerance <= 254
  

Higher segmentTolerance values allow non-binary images to be analysed but may also result in wrong segment start/end detection. The default is 0


The documentation for this class was generated from the following file:

Generated on Sat Apr 10 15:27:17 2010 for LTI-Lib by Doxygen 1.6.1