Avoid HOGDescriptor with sigma = 0

Solve #9307.
This commit is contained in:
Camille Barneaud 2017-08-19 15:03:16 +02:00 committed by GitHub
parent d27009c775
commit d5e64f4eb2

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