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

Add export specifiers in StaticSaliencyFineGrained

parent a39e3623
......@@ -119,11 +119,24 @@ protected:
This method calculates saliency based on center-surround differences.
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:
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();
protected:
......
......@@ -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);
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