1
0
mirror of https://github.com/opencv/opencv_contrib.git synced 2025-10-24 11:33:26 +08:00

change area() emptiness checks to empty()

This commit is contained in:
tompollok
2018-10-14 21:24:20 +02:00
parent b566035726
commit 8893087432
5 changed files with 5 additions and 5 deletions

View File

@@ -66,7 +66,7 @@ namespace cv{
}
double TrackingFunctionPF::calc(const double* x) const{
Rect rect=rectFromRow(x);
if(rect.area()==0){
if(rect.empty()){
return 2.0;
}
return _origHist.dist(TrackingHistogram(_image(rect),_nh,_ns,_nv));