From f87f0cc4819901f703893e4e4e06762da8c75098 Mon Sep 17 00:00:00 2001 From: Florian Verdet Date: Tue, 16 Dec 2014 12:46:07 +0100 Subject: [PATCH] fix obvious copy+paste typo in computeDistance() (with this else-branch, argument contour2 would not be used at all) --- modules/shape/src/sc_dis.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/shape/src/sc_dis.cpp b/modules/shape/src/sc_dis.cpp index 449cbe99ea..d67907494c 100644 --- a/modules/shape/src/sc_dis.cpp +++ b/modules/shape/src/sc_dis.cpp @@ -199,7 +199,7 @@ float ShapeContextDistanceExtractorImpl::computeDistance(InputArray contour1, In if (set2.type() != CV_32F) sset2.convertTo(set2, CV_32F); else - sset1.copyTo(set2); + sset2.copyTo(set2); CV_Assert((set1.channels()==2) && (set1.cols>0)); CV_Assert((set2.channels()==2) && (set2.cols>0));