mirror of
https://github.com/opencv/opencv.git
synced 2024-11-25 03:30:34 +08:00
fix obvious copy+paste typo in computeDistance()
(with this else-branch, argument contour2 would not be used at all)
This commit is contained in:
parent
009aec5164
commit
f87f0cc481
@ -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));
|
||||
|
Loading…
Reference in New Issue
Block a user