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

lti::edgeDetector Class Reference

Parent abstract class for all edge detectors. More...

#include <ltiEdgeDetector.h>

Inheritance diagram for lti::edgeDetector:
Inheritance graph
[legend]
Collaboration diagram for lti::edgeDetector:
Collaboration graph
[legend]

List of all members.

Classes

class  parameters
 the parameters for the class edgeDetector More...

Public Member Functions

 edgeDetector ()
 edgeDetector (const edgeDetector &other)
virtual ~edgeDetector ()
virtual const char * getTypeName () const
virtual bool apply (channel8 &srcdest) const
virtual bool apply (channel &srcdest) const
virtual bool apply (const channel8 &src, channel8 &dest) const
virtual bool apply (const channel &src, channel &dest) const
virtual bool apply (const channel &src, channel8 &dest) const
virtual bool apply (image &srcdest) const
virtual bool apply (const image &src, image &dest) const
virtual bool apply (const image &src, channel8 &dest) const
edgeDetectorcopy (const edgeDetector &other)
edgeDetectoroperator= (const edgeDetector &other)
virtual functorclone () const =0
const parametersgetParameters () const

Detailed Description

Parent abstract class for all edge detectors.

An edge detector finds the edges in an gray-valued image. The definition of "edge" is usually related to an abrupt change in the intensity value of pixels.

The result will be usually a channel8 containing only the two values specified in the parameter to denote edge and no-edge.


Constructor & Destructor Documentation

lti::edgeDetector::edgeDetector (  ) 

default constructor

lti::edgeDetector::edgeDetector ( const edgeDetector other  ) 

copy constructor

Parameters:
other the object to be copied
virtual lti::edgeDetector::~edgeDetector (  )  [virtual]

destructor


Member Function Documentation

virtual bool lti::edgeDetector::apply ( const image src,
channel8 dest 
) const [virtual]

Compute the edges for the red, green and blue components of the image and leave the sum of the results in the given channel.

Note that if you give as parameters::edgeValue or parameters::noEdgeValue values greater than 255/3, you can have some overflow effects on the resulting channel.

Parameters:
src image with the source data.
dest channel8 where the result will be left.
Returns:
true if apply successful or false otherwise.

Reimplemented in lti::cannyEdges, lti::colorEdgesGS, and lti::susanEdges.

virtual bool lti::edgeDetector::apply ( const image src,
image dest 
) const [virtual]

Compute the edges for the red, green and blue components of the image and leave the result in each channel of the destination image.

Parameters:
src image with the source data.
dest image where the result will be left.
Returns:
true if apply successful or false otherwise.

Reimplemented from lti::modifier.

Reimplemented in lti::cannyEdges, lti::colorEdgesGS, and lti::susanEdges.

virtual bool lti::edgeDetector::apply ( image srcdest  )  const [virtual]

Compute the edges for the red, green and blue components of the image and leave the result in each channel of image.

Parameters:
srcdest image with the source data. The result will be left here too.
Returns:
true if apply successful or false otherwise.

Reimplemented from lti::modifier.

Reimplemented in lti::cannyEdges, lti::colorEdgesGS, and lti::susanEdges.

virtual bool lti::edgeDetector::apply ( const channel src,
channel8 dest 
) const [virtual]

operates on a copy of the given parameters.

Parameters:
src channel with the source data.
dest channel8 where the result will be left.
Returns:
true if apply successful or false otherwise.

Reimplemented in lti::cannyEdges, lti::classicEdgeDetector, lti::colorEdgesGS, and lti::susanEdges.

virtual bool lti::edgeDetector::apply ( const channel src,
channel dest 
) const [virtual]

operates on a copy of the given parameters.

Parameters:
src channel with the source data.
dest channel where the result will be left.
Returns:
true if apply successful or false otherwise.

Reimplemented from lti::modifier.

Reimplemented in lti::cannyEdges, lti::colorEdgesGS, and lti::susanEdges.

virtual bool lti::edgeDetector::apply ( const channel8 src,
channel8 dest 
) const [virtual]

operates on a copy of the given parameters.

Parameters:
src channel8 with the source data.
dest channel8 where the result will be left.
Returns:
true if apply successful or false otherwise.

Reimplemented from lti::modifier.

Reimplemented in lti::cannyEdges, lti::colorEdgesGS, and lti::susanEdges.

virtual bool lti::edgeDetector::apply ( channel srcdest  )  const [virtual]

operates on the given parameter.

Parameters:
srcdest channel with the source data. The result will be left here too.
Returns:
true if apply successful or false otherwise.

Reimplemented from lti::modifier.

Reimplemented in lti::cannyEdges, lti::colorEdgesGS, and lti::susanEdges.

virtual bool lti::edgeDetector::apply ( channel8 srcdest  )  const [virtual]

operates on the given parameter.

Parameters:
srcdest channel8 with the source data. The result will be left here too.
Returns:
true if apply successful or false otherwise.

Reimplemented from lti::modifier.

Reimplemented in lti::cannyEdges, lti::classicEdgeDetector, lti::colorEdgesGS, and lti::susanEdges.

virtual functor* lti::edgeDetector::clone (  )  const [pure virtual]

returns a pointer to a clone of this functor.

Implements lti::functor.

Implemented in lti::cannyEdges, lti::classicEdgeDetector, lti::colorEdgesGS, and lti::susanEdges.

edgeDetector& lti::edgeDetector::copy ( const edgeDetector other  ) 

copy data of "other" functor.

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

Reimplemented from lti::functor.

Reimplemented in lti::cannyEdges, lti::classicEdgeDetector, and lti::colorEdgesGS.

const parameters& lti::edgeDetector::getParameters (  )  const

returns used parameters

Reimplemented from lti::modifier.

Reimplemented in lti::cannyEdges, lti::classicEdgeDetector, lti::colorEdgesGS, and lti::susanEdges.

virtual const char* lti::edgeDetector::getTypeName (  )  const [virtual]

returns the name of this type ("edgeDetector")

Reimplemented from lti::modifier.

Reimplemented in lti::cannyEdges, lti::classicEdgeDetector, lti::colorEdgesGS, and lti::susanEdges.

edgeDetector& lti::edgeDetector::operator= ( const edgeDetector other  ) 

alias for copy member

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

Reimplemented from lti::functor.

Reimplemented in lti::cannyEdges, lti::classicEdgeDetector, and lti::colorEdgesGS.


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

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