latest version v1.9 - last update 10 Apr 2010 |
Parent abstract class for all edge detectors. More...
#include <ltiEdgeDetector.h>
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 |
edgeDetector & | copy (const edgeDetector &other) |
edgeDetector & | operator= (const edgeDetector &other) |
virtual functor * | clone () const =0 |
const parameters & | getParameters () const |
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.
lti::edgeDetector::edgeDetector | ( | ) |
default constructor
lti::edgeDetector::edgeDetector | ( | const edgeDetector & | other | ) |
copy constructor
other | the object to be copied |
virtual lti::edgeDetector::~edgeDetector | ( | ) | [virtual] |
destructor
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.
Reimplemented in lti::cannyEdges, lti::colorEdgesGS, and lti::susanEdges.
Compute the edges for the red, green and blue components of the image and leave the result in each channel of the destination image.
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.
srcdest | image with the source data. The result will be left here too. |
Reimplemented from lti::modifier.
Reimplemented in lti::cannyEdges, lti::colorEdgesGS, and lti::susanEdges.
operates on a copy of the given parameters.
Reimplemented in lti::cannyEdges, lti::classicEdgeDetector, lti::colorEdgesGS, and lti::susanEdges.
operates on a copy of the given parameters.
Reimplemented from lti::modifier.
Reimplemented in lti::cannyEdges, lti::colorEdgesGS, and lti::susanEdges.
operates on a copy of the given parameters.
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.
srcdest | channel with the source data. The result will be left here too. |
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.
srcdest | channel8 with the source data. The result will be left here too. |
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.
other | the functor to be copied |
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
other | the functor to be copied |
Reimplemented from lti::functor.
Reimplemented in lti::cannyEdges, lti::classicEdgeDetector, and lti::colorEdgesGS.