OpenCV  5.0.0alpha
Open Source Computer Vision
Loading...
Searching...
No Matches
cv::saliency::Saliency Class Referenceabstract

#include <opencv2/saliency/saliencyBaseClasses.hpp>

Collaboration diagram for cv::saliency::Saliency:

Public Member Functions

virtual ~Saliency ()
 Destructor.
 
bool computeSaliency (InputArray image, OutputArray saliencyMap)
 Compute the saliency.
 
- Public Member Functions inherited from cv::Algorithm
 Algorithm ()
 
virtual ~Algorithm ()
 
virtual void clear ()
 Clears the algorithm state.
 
virtual bool empty () const
 Returns true if the Algorithm is empty (e.g. in the very beginning or after unsuccessful read.
 
virtual String getDefaultName () const
 
virtual void read (const FileNode &fn)
 Reads algorithm parameters from a file storage.
 
virtual void save (const String &filename) const
 
virtual void write (FileStorage &fs) const
 Stores algorithm parameters in a file storage.
 
void write (FileStorage &fs, const String &name) const
 

Protected Member Functions

virtual bool computeSaliencyImpl (InputArray image, OutputArray saliencyMap)=0
 
- Protected Member Functions inherited from cv::Algorithm
void writeFormat (FileStorage &fs) const
 

Protected Attributes

String className
 

Additional Inherited Members

- Static Public Member Functions inherited from cv::Algorithm
template<typename _Tp >
static Ptr< _Tpload (const String &filename, const String &objname=String())
 Loads algorithm from the file.
 
template<typename _Tp >
static Ptr< _TploadFromString (const String &strModel, const String &objname=String())
 Loads algorithm from a String.
 
template<typename _Tp >
static Ptr< _Tpread (const FileNode &fn)
 Reads algorithm from the file node.
 

Constructor & Destructor Documentation

◆ ~Saliency()

virtual cv::saliency::Saliency::~Saliency ( )
virtual

Destructor.

Member Function Documentation

◆ computeSaliency()

bool cv::saliency::Saliency::computeSaliency ( InputArray image,
OutputArray saliencyMap )
Python:
cv.saliency.Saliency.computeSaliency(image[, saliencyMap]) -> retval, saliencyMap

Compute the saliency.

Parameters
imageThe image.
saliencyMapThe computed saliency map.
Returns
true if the saliency map is computed, false otherwise

◆ computeSaliencyImpl()

Member Data Documentation

◆ className

String cv::saliency::Saliency::className
protected

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