Commit 73c03fd1 authored by Vladislav Sovrasov's avatar Vladislav Sovrasov

Add export specifiers in StaticSaliencyFineGrained

parent a39e3623
...@@ -119,11 +119,24 @@ protected: ...@@ -119,11 +119,24 @@ protected:
This method calculates saliency based on center-surround differences. This method calculates saliency based on center-surround differences.
High resolution saliency maps are generated in real time by using integral images. High resolution saliency maps are generated in real time by using integral images.
*/ */
class CV_EXPORTS StaticSaliencyFineGrained : public StaticSaliency class CV_EXPORTS_W StaticSaliencyFineGrained : public StaticSaliency
{ {
public: public:
StaticSaliencyFineGrained(); StaticSaliencyFineGrained();
CV_WRAP static Ptr<StaticSaliencyFineGrained> create()
{
return makePtr<StaticSaliencyFineGrained>();
}
CV_WRAP bool computeSaliency( InputArray image, OutputArray saliencyMap )
{
if( image.empty() )
return false;
return computeSaliencyImpl( image, saliencyMap );
}
virtual ~StaticSaliencyFineGrained(); virtual ~StaticSaliencyFineGrained();
protected: protected:
......
...@@ -62,7 +62,7 @@ StaticSaliencyFineGrained::~StaticSaliencyFineGrained() ...@@ -62,7 +62,7 @@ StaticSaliencyFineGrained::~StaticSaliencyFineGrained()
} }
bool StaticSaliencyFineGrained::computeSaliencyImpl( const InputArray image, OutputArray saliencyMap ) bool StaticSaliencyFineGrained::computeSaliencyImpl(InputArray image, OutputArray saliencyMap )
{ {
Mat dst(Size(image.getMat().cols, image.getMat().rows), CV_8UC1); Mat dst(Size(image.getMat().cols, image.getMat().rows), CV_8UC1);
calcIntensityChannel(image.getMat(), dst); calcIntensityChannel(image.getMat(), dst);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment