JeVoisBase  1.6
JeVois Smart Embedded Machine Vision Toolkit Base Modules
Share this page:
MorphologyFilter Class Reference

A morphology filter. More...

#include <jevoisbase/Components/Filters/MorphologyFilter.H>

Inheritance diagram for MorphologyFilter:
Collaboration diagram for MorphologyFilter:

Public Member Functions

virtual ~MorphologyFilter ()
 Virtual destructor for safe inheritance. More...
 
virtual std::string process (cv::Mat const &src, cv::Mat &dst) override
 Processing function: filters the image src and puts the results into dst. More...
 
- Public Member Functions inherited from Filter
virtual ~Filter ()
 Virtual destructor for safe inheritance. More...
 
- Public Member Functions inherited from jevois::Component
 Component (std::string const &instance)
 
virtual ~Component ()
 
std::shared_ptr< ComponentgetSubComponent (std::string const &instance) const
 
std::shared_ptr< Comp > addSubComponent (std::string const &instance, Args &&...args)
 
void removeSubComponent (std::shared_ptr< Comp > &component)
 
void removeSubComponent (std::string const &instance, bool warnIfNotFound=true)
 
std::shared_ptr< Comp > getSubComponent (std::string const &instance) const
 
bool isTopLevel () const
 
bool initialized () const
 
std::string const & className () const
 
std::string const & instanceName () const
 
std::vector< std::string > setParamVal (std::string const &paramdescriptor, T const &val)
 
void setParamValUnique (std::string const &paramdescriptor, T const &val)
 
std::vector< std::pair< std::string, T > > getParamVal (std::string const &paramdescriptor) const
 
getParamValUnique (std::string const &paramdescriptor) const
 
std::vector< std::string > setParamString (std::string const &paramdescriptor, std::string const &val)
 
void setParamStringUnique (std::string const &paramdescriptor, std::string const &val)
 
std::vector< std::pair< std::string, std::string > > getParamString (std::string const &paramdescriptor) const
 
std::string getParamStringUnique (std::string const &paramdescriptor) const
 
void freezeParam (std::string const &paramdescriptor)
 
void unFreezeParam (std::string const &paramdescriptor)
 
void freezeAllParams ()
 
void unFreezeAllParams ()
 
std::string descriptor () const
 
void setParamsFromFile (std::string const &filename)
 
std::istream & setParamsFromStream (std::istream &is, std::string const &absfile)
 
void setPath (std::string const &path)
 
std::string absolutePath (std::string const &path="")
 
std::shared_ptr< Comp > addSubComponent (std::string const &instance, Args &&...args)
 
void removeSubComponent (std::shared_ptr< Comp > &component)
 
void removeSubComponent (std::string const &instance, bool warnIfNotFound=true)
 
std::shared_ptr< Comp > getSubComponent (std::string const &instance) const
 
bool isTopLevel () const
 
bool initialized () const
 
std::string const & className () const
 
std::string const & instanceName () const
 
std::vector< std::string > setParamVal (std::string const &paramdescriptor, T const &val)
 
void setParamValUnique (std::string const &paramdescriptor, T const &val)
 
std::vector< std::pair< std::string, T > > getParamVal (std::string const &paramdescriptor) const
 
getParamValUnique (std::string const &paramdescriptor) const
 
std::vector< std::string > setParamString (std::string const &paramdescriptor, std::string const &val)
 
void setParamStringUnique (std::string const &paramdescriptor, std::string const &val)
 
std::vector< std::pair< std::string, std::string > > getParamString (std::string const &paramdescriptor) const
 
std::string getParamStringUnique (std::string const &paramdescriptor) const
 
void freezeParam (std::string const &paramdescriptor)
 
void unFreezeParam (std::string const &paramdescriptor)
 
void freezeAllParams ()
 
void unFreezeAllParams ()
 
std::string descriptor () const
 
void setParamsFromFile (std::string const &filename)
 
std::istream & setParamsFromStream (std::istream &is, std::string const &absfile)
 
void setPath (std::string const &path)
 
std::string absolutePath (std::string const &path="")
 
- Public Member Functions inherited from jevois::ParameterRegistry
virtual ~ParameterRegistry ()
 

Related Functions

(Note that these are not member functions.)

 JEVOIS_DEFINE_ENUM_CLASS (MorphoOp,(Erode)(Dilate)(Open)(Close)(Gradient)(TopHat)(BlackHat)) JEVOIS_DECLARE_PARAMETER(op
 Enum. More...
 
 JEVOIS_DEFINE_ENUM_CLASS (KernelShape,(Rectangle)(Cross)(Ellipse))
 Enum. More...
 
 JEVOIS_DECLARE_PARAMETER (kshape, KernelShape, "Kernel shape", KernelShape::Rectangle, KernelShape_Values, ParamCateg)
 Parameter. More...
 
 JEVOIS_DECLARE_PARAMETER (ksize, cv::Size, "Kernel width and height", cv::Size(7, 7), ParamCateg)
 Parameter. More...
 
 JEVOIS_DECLARE_PARAMETER (anchor, cv::Point, "Anchor point x and y default value [-1 -1] means that the anchor " "is at the kernel center", cv::Point(-1, -1), ParamCateg)
 Parameter. More...
 
 JEVOIS_DECLARE_PARAMETER (iter, unsigned int, "Number of iterations of the filter to apply", 1U, ParamCateg)
 Parameter. More...
 

Additional Inherited Members

- Protected Member Functions inherited from jevois::Component
virtual void preInit ()
 
virtual void postInit ()
 
virtual void preUninit ()
 
virtual void postUninit ()
 
virtual void preInit ()
 
virtual void postInit ()
 
virtual void preUninit ()
 
virtual void postUninit ()
 
- Protected Member Functions inherited from jevois::ParameterRegistry
void addParameter (ParameterBase *const param)
 
void removeParameter (ParameterBase *const param)
 
void callbackInitCall ()
 

Detailed Description

A morphology filter.

See http://docs.opencv.org/3.2.0/d4/d86/group__imgproc__filter.html for details.

Definition at line 58 of file MorphologyFilter.H.

Constructor & Destructor Documentation

◆ ~MorphologyFilter()

MorphologyFilter::~MorphologyFilter ( )
virtual

Virtual destructor for safe inheritance.

Definition at line 23 of file MorphologyFilter.C.

Member Function Documentation

◆ process()

std::string MorphologyFilter::process ( cv::Mat const &  src,
cv::Mat &  dst 
)
overridevirtual

Processing function: filters the image src and puts the results into dst.

Implements Filter.

Definition at line 27 of file MorphologyFilter.C.

References strget().

Friends And Related Function Documentation

◆ JEVOIS_DECLARE_PARAMETER() [1/4]

JEVOIS_DECLARE_PARAMETER ( kshape  ,
KernelShape  ,
"Kernel shape"  ,
KernelShape::Rectangle  ,
KernelShape_Values  ,
ParamCateg   
)
related

Parameter.

◆ JEVOIS_DECLARE_PARAMETER() [2/4]

JEVOIS_DECLARE_PARAMETER ( ksize  ,
cv::Size  ,
"Kernel width and height"  ,
cv::Size(7, 7)  ,
ParamCateg   
)
related

Parameter.

◆ JEVOIS_DECLARE_PARAMETER() [3/4]

JEVOIS_DECLARE_PARAMETER ( anchor  ,
cv::Point  ,
"Anchor point x and y default value means that the anchor " "is at the kernel center"  [-1 -1],
cv::Point(-1, -1)  ,
ParamCateg   
)
related

Parameter.

◆ JEVOIS_DECLARE_PARAMETER() [4/4]

JEVOIS_DECLARE_PARAMETER ( iter  ,
unsigned  int,
"Number of iterations of the filter to apply"  ,
1U  ,
ParamCateg   
)
related

Parameter.

◆ JEVOIS_DEFINE_ENUM_CLASS() [1/2]

JEVOIS_DEFINE_ENUM_CLASS ( MorphoOp  ,
(Erode)(Dilate)(Open)(Close)(Gradient)(TopHat)(BlackHat)   
)
related

Enum.

Parameter

◆ JEVOIS_DEFINE_ENUM_CLASS() [2/2]

JEVOIS_DEFINE_ENUM_CLASS ( KernelShape  ,
(Rectangle)(Cross)(Ellipse)   
)
related

Enum.


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