Skip to content

Commit e93aa15

Browse files
committed
Merge pull request opencv#8496 from Sahloul:fixes/wrappers/imgproc/EMD
2 parents 297ba85 + 6a856d6 commit e93aa15

File tree

2 files changed

+11
-0
lines changed

2 files changed

+11
-0
lines changed

modules/imgproc/include/opencv2/imgproc.hpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3280,6 +3280,10 @@ CV_EXPORTS float EMD( InputArray signature1, InputArray signature2,
32803280
int distType, InputArray cost=noArray(),
32813281
float* lowerBound = 0, OutputArray flow = noArray() );
32823282

3283+
CV_EXPORTS_AS(EMD) float wrapperEMD( InputArray signature1, InputArray signature2,
3284+
int distType, InputArray cost=noArray(),
3285+
CV_IN_OUT Ptr<float> lowerBound = Ptr<float>(), OutputArray flow = noArray() );
3286+
32833287
//! @} imgproc_hist
32843288

32853289
/** @example watershed.cpp

modules/imgproc/src/emd.cpp

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1164,4 +1164,11 @@ float cv::EMD( InputArray _signature1, InputArray _signature2,
11641164
_flow.needed() ? &_cflow : 0, lowerBound, 0 );
11651165
}
11661166

1167+
float cv::wrapperEMD(InputArray _signature1, InputArray _signature2,
1168+
int distType, InputArray _cost,
1169+
Ptr<float> lowerBound, OutputArray _flow)
1170+
{
1171+
return EMD(_signature1, _signature2, distType, _cost, lowerBound.get(), _flow);
1172+
}
1173+
11671174
/* End of file. */

0 commit comments

Comments
 (0)