Maybe an overflow bug in cascadedetect.cpp #20162
Labels
category: objdetect
question (invalid tracker)
ask questions and other "no action" items here: https://forum.opencv.org
System information (version)
Detailed description
At this line of cascadedetect.cpp, the
computeChannels
method ofHaarEvaluator
computes integral image of input image and its squared pixel values withdepth=CV_32S
for bothsum
andsqsum
. Also at this line,sbuf
(which I belive is the buffer of the integral images) has type ofCV_32S
.Even a 512x512 lena.jpg has
sqsum
exceed 32bits integer range,sum
would soon be overflow for larger image. So I suspect that it would cause overflow bug thus make the whole code wrong except that the code was misunderstood (in this case, I apologize for my mistake).Steps to reproduce
Issue submission checklist
forum.opencv.org, Stack Overflow, etc and have not found solution
The text was updated successfully, but these errors were encountered: