Thanks to visit codestin.com
Credit goes to github.com

Skip to content
Merged
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
8 changes: 8 additions & 0 deletions modules/imgproc/include/opencv2/imgproc/detail/legacy.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,14 @@ CV_EXPORTS void findContours_legacy(InputArray image,
int method,
Point offset = Point());

CV_EXPORTS float EMD_legacy( InputArray _signature1, InputArray _signature2,
int distType, InputArray _cost,
float* lowerBound, OutputArray _flow );

CV_EXPORTS float wrapperEMD_legacy(InputArray _signature1, InputArray _signature2,
int distType, InputArray _cost,
Ptr<float> lowerBound, OutputArray _flow);

#endif

} // namespace cv
Expand Down
5 changes: 3 additions & 2 deletions modules/imgproc/src/emd.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,7 @@
==========================================================================
*/
#include "precomp.hpp"
#include "opencv2/imgproc/detail/legacy.hpp"

#define MAX_ITERATIONS 500
#define CV_EMD_INF ((float)1e20)
Expand Down Expand Up @@ -1147,7 +1148,7 @@ icvDistC( const float *x, const float *y, void *user_param )
}


float cv::EMD( InputArray _signature1, InputArray _signature2,
float cv::EMD_legacy( InputArray _signature1, InputArray _signature2,
int distType, InputArray _cost,
float* lowerBound, OutputArray _flow )
{
Expand All @@ -1171,7 +1172,7 @@ float cv::EMD( InputArray _signature1, InputArray _signature2,
_flow.needed() ? &_cflow : 0, lowerBound, 0 );
}

float cv::wrapperEMD(InputArray _signature1, InputArray _signature2,
float cv::wrapperEMD_legacy(InputArray _signature1, InputArray _signature2,
int distType, InputArray _cost,
Ptr<float> lowerBound, OutputArray _flow)
{
Expand Down
Loading