diff --git a/modules/objdetect/src/hog.cpp b/modules/objdetect/src/hog.cpp index ac02e67a36..80f8ef2db0 100644 --- a/modules/objdetect/src/hog.cpp +++ b/modules/objdetect/src/hog.cpp @@ -100,7 +100,7 @@ size_t HOGDescriptor::getDescriptorSize() const double HOGDescriptor::getWinSigma() const { - return winSigma >= 0 ? winSigma : (blockSize.width + blockSize.height)/8.; + return winSigma > 0 ? winSigma : (blockSize.width + blockSize.height)/8.; } bool HOGDescriptor::checkDetectorSize() const