ReadFramework
rdf::GradientVector Class Reference

#include <GradientVector.h>

Inheritance diagram for rdf::GradientVector:
Collaboration diagram for rdf::GradientVector:

Public Member Functions

 GradientVector (const cv::Mat &img, const cv::Mat &mask=cv::Mat())
 
cv::Mat debugGaussImg ()
 
cv::Mat magImg ()
 
cv::Mat radImg ()
 
cv::Mat mask ()
 
void setAnchor (cv::Point a)
 
cv::Point anchor () const
 
void setDxKernel (const cv::Mat &m)
 
void setDyKernel (const cv::Mat &m)
 
double minVal () const
 
double maxVal () const
 
bool isEmpty () const override
 Returns true if the module was initialized with the default constructor. Note, if empty is true, nothing can be computed. More...
 
virtual bool compute () override
 Runs the algorithm implemented by the module. More...
 
QSharedPointer< GradientVectorConfigconfig () const
 
virtual QString toString () const override
 Converts the module's parameters and results to a string. More...
 
- Public Member Functions inherited from rdf::Module
 Module ()
 Default constructor Initializes a new instance of the Module class. More...
 
virtual QString name () const
 Returns the module's name. More...
 
virtual void setConfig (QSharedPointer< ModuleConfig > config)
 
QSharedPointer< ModuleConfigconfig () const
 

Protected Member Functions

bool checkInput () const override
 
void computeGradients ()
 
void computeGradMag (bool norm)
 
void computeGradAngle ()
 
- Protected Member Functions inherited from rdf::Module
QString debugName () const
 

Additional Inherited Members

- Protected Attributes inherited from rdf::Module
QSharedPointer< ModuleConfigmConfig
 

Constructor & Destructor Documentation

rdf::GradientVector::GradientVector ( const cv::Mat &  img,
const cv::Mat &  mask = cv::Mat() 
)

Member Function Documentation

cv::Point rdf::GradientVector::anchor ( ) const
bool rdf::GradientVector::checkInput ( ) const
overrideprotectedvirtual

checks if all input images are in the specified format.

Implements rdf::Module.

bool rdf::GradientVector::compute ( )
overridevirtual

Runs the algorithm implemented by the module.

Returns
True on success.

Implements rdf::Module.

Here is the caller graph for this function:

void rdf::GradientVector::computeGradAngle ( )
protected
void rdf::GradientVector::computeGradients ( )
protected
void rdf::GradientVector::computeGradMag ( bool  norm)
protected
QSharedPointer< GradientVectorConfig > rdf::GradientVector::config ( ) const
cv::Mat rdf::GradientVector::debugGaussImg ( )
bool rdf::GradientVector::isEmpty ( ) const
overridevirtual

Returns true if the module was initialized with the default constructor. Note, if empty is true, nothing can be computed.

Returns
Returns true if the module was initialized.

Implements rdf::Module.

cv::Mat rdf::GradientVector::magImg ( )

Here is the caller graph for this function:

cv::Mat rdf::GradientVector::mask ( )
double rdf::GradientVector::maxVal ( ) const
double rdf::GradientVector::minVal ( ) const
cv::Mat rdf::GradientVector::radImg ( )

Here is the caller graph for this function:

void rdf::GradientVector::setAnchor ( cv::Point  a)
void rdf::GradientVector::setDxKernel ( const cv::Mat &  m)
void rdf::GradientVector::setDyKernel ( const cv::Mat &  m)
QString rdf::GradientVector::toString ( ) const
overridevirtual

Converts the module's parameters and results to a string.

Returns
The string containing all parameters and results of the module.

Reimplemented from rdf::Module.


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