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

lti::orientedHLTransform::parameters Class Reference

the parameters for the class orientedHLTransform More...

#include <ltiOrientedHLTransform.h>

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

List of all members.

Public Types

enum  eAccumulationMode { Classic, Gradient }

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

trectangle< int > transformationArea
int baseValue
int accuracy
int range
eAccumulationMode accumulationMode

Detailed Description

the parameters for the class orientedHLTransform


Member Enumeration Documentation

Accumulation modes.

Enumerator:
Classic 

A value of 1 will be accumulated in the hough space each time an edge is found with a value greater than baseValue.

Gradient 

The value in the given edges image will be accumulated allowing to weight the strongness of an edge.

If the edges image is a channel, their values will be multiplied by 255 before accumulating.


Constructor & Destructor Documentation

lti::orientedHLTransform::parameters::parameters (  ) 

default constructor

Reimplemented from lti::transform::parameters.

lti::orientedHLTransform::parameters::parameters ( const parameters other  ) 

copy constructor

Parameters:
other the parameters object to be copied

Reimplemented from lti::transform::parameters.

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

destructor

Reimplemented from lti::functor::parameters.


Member Function Documentation

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

returns a pointer to a clone of the parameters

Reimplemented from lti::transform::parameters.

parameters& lti::orientedHLTransform::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::transform::parameters.

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

returns name of this type

Reimplemented from lti::transform::parameters.

parameters& lti::orientedHLTransform::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::orientedHLTransform::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::orientedHLTransform::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

mode used for the accumulation

Default: Classic

Accuracy of Hough Line Transformation.

Determines what kind of line angles can be detected. The following values are allowed:

  • 45 (4 degrees steps) : very inaccurate, but very fast
  • 90 (2 degrees steps) : inaccurate, but fast
  • 180 (1 degree steps) : quite accurate
  • 360 (1/2 degree steps) : accurate, but slower
  • 540 (1/3 degree steps) : very accurate, but very slow
  • 720 (1/4 degree steps) : even more accurate, but even slower...
  • ...

Higher values that are divisible by 180 are also allowed, but do make the transformation _really_ slow.

Default value: 180

All points of the input image/channel whose value is greater than the base value are used for transformation.

(usually the base value will be 0 (or a little higher) which results in all coloured lines being considered on a black background)

For channels (with float values), the comparison value will be baseValue/255.0.

Default Value: 0

Angle range.

The sinusoids are only be drawn from (gradientAngle-range) to (gradientAngle+range). Values lower than 5 are not recommended.

Default value is 10.

Part of the input image/channel that will be considered for transformation.

If this area is bigger than the image/channel size given in the apply() method, the size of the channel will be used.

The default values are (0,0, std::numeric_limits<int>::max(), std::numeric_limits<int>::max()) (i.e. use the whole image)


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

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