Skip to content

Commit bc3280d

Browse files
committed
Merge pull request opencv#9414 from gadcam:HOGDescriptor-winSigma
2 parents 8e7e24a + d5e64f4 commit bc3280d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

modules/objdetect/src/hog.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ size_t HOGDescriptor::getDescriptorSize() const
100100

101101
double HOGDescriptor::getWinSigma() const
102102
{
103-
return winSigma >= 0 ? winSigma : (blockSize.width + blockSize.height)/8.;
103+
return winSigma > 0 ? winSigma : (blockSize.width + blockSize.height)/8.;
104104
}
105105

106106
bool HOGDescriptor::checkDetectorSize() const

0 commit comments

Comments
 (0)