Commit d5e64f4e authored by Camille Barneaud's avatar Camille Barneaud Committed by GitHub

Avoid HOGDescriptor with sigma = 0

Solve #9307.
parent d27009c7
...@@ -100,7 +100,7 @@ size_t HOGDescriptor::getDescriptorSize() const ...@@ -100,7 +100,7 @@ size_t HOGDescriptor::getDescriptorSize() const
double HOGDescriptor::getWinSigma() 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 bool HOGDescriptor::checkDetectorSize() const
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment