Merge pull request #9414 from gadcam:HOGDescriptor-winSigma

This commit is contained in:
Alexander Alekhin 2017-08-24 15:57:18 +00:00
commit bc3280d64d

View File

@ -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