Where can find the illustration for detectSingleScale function
Suppose there is image of 200x200, and the detecting window is 20x20, which is equal to trained sample. What is detecting procedure to detect the face in the image?
the features are determinded by harr in the lib, but why do we use integral image as feature matching in detecting? This function is in detectMultiScale,
for( double factor = 1;; factor * = scaleFactor)//detect under each size
{
SizeoriginalWindowSize =getOriginalWindowSize();//minWndsize
...
SizescaledImageSize( cvRound(grayImage.cols/factor ), cvRound ( grayImage.rows/factor ) );//change image size
SizeprocessingRectSize(scaledImageSize.width -originalWindowSize.width + 1,scaledImageSize.height -originalWindowSize.height + 1 );//slide distance
...
if( !**detectSingleScale**( scaledImage, stripCount, processingRectSize, stripSize,yStep,factor,candidates,rejectLevels,levelWeights,outputRejectLevels) )//invoke detectSingleScale
break;
}
objects.resize(candidates.size())
hi @learner, - it is probably not about eigenfaces(your tag), but about object-detection ?
also, there is no
detectSingleScale()
method in opencv's api, so what do you mean ?can you try to read the docs again (or even the paper mentionend there) ?
I find no suitable tag except this one. well, object detection maybe more suitable. detectSingleScale is invoked by detectMultiScale function.
You should start reading the original paper to even get the slightest idea on why you should use integral images. It has everything to do with efficient calculations.
@StevenPuttemans, To get the feature value, but I don;t know what relationship betweent it and harr features? harr feature value is got from sum(white-black), but integral image is only a distributon funcon of gray
I add a picture, but I was told it has to wait until tomorrow
Again read the paper! It explains what the relation between integral image and HAAR wavelet is exactly.
oh, link textlink text