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:
@@ -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));
|
||||
|
||||
Reference in New Issue
Block a user