Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion modules/saliency/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,6 @@ endif()

set(the_description "Saliency API")

ocv_define_module(saliency opencv_imgproc opencv_features2d WRAP python)
ocv_define_module(saliency opencv_imgproc opencv_features2d WRAP python java)

ocv_warnings_disable(CMAKE_CXX_FLAGS -Woverloaded-virtual)
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ class CV_EXPORTS_W StaticSaliencySpectralResidual : public StaticSaliency
}

CV_WRAP void read( const FileNode& fn ) CV_OVERRIDE;
void write( FileStorage& fs ) const CV_OVERRIDE;
CV_WRAP void write( FileStorage& fs ) const CV_OVERRIDE;

CV_WRAP int getImageWidth() const
{
Expand Down Expand Up @@ -308,9 +308,6 @@ class CV_EXPORTS_W ObjectnessBING : public Objectness
return computeSaliencyImpl( image, saliencyMap );
}

CV_WRAP void read();
CV_WRAP void write() const;

/** @brief Return the list of the rectangles' objectness value,

in the same order as the *vector\<Vec4i\> objectnessBoundingBox* returned by the algorithm (in
Expand Down
11 changes: 1 addition & 10 deletions modules/saliency/src/BING/objectnessBING.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -448,21 +448,12 @@ bool ObjectnessBING::matRead( const std::string& filename, Mat& _M )
M.copyTo( _M );
return true;
}

std::vector<float> ObjectnessBING::getobjectnessValues()
{
return objectnessValues;
}

void ObjectnessBING::read()
{

}

void ObjectnessBING::write() const
{

}

bool ObjectnessBING::computeSaliencyImpl( InputArray image, OutputArray objectnessBoundingBox )
{
ValStructVec<float, Vec4i> finalBoxes;
Expand Down
Loading