1 | initial version |
The program only reaches the state where last >= count if no valid image is loaded. Otherwise, it gets out of the loop and when it gets in the next time, everything is all right.
Count is the number of negative images. The algorithm iterates through the whole sets of images, over different rounds (hence not only one time), until it collects all the samples it needs. _offset.x >= 0 && _offset.y >= 0 discards images which are smaller than the windows itself.
the role of scale is to shrink the image to minimum size to allow it to be fitted by a sliding window.
2 | No.2 Revision |
The program only reaches the state where last >= count if no valid image is loaded. Otherwise, it gets out of the loop and when it gets in the next time, everything is all right.
Count is the number of negative images. The algorithm iterates through the whole sets of images, over different rounds (hence not only one time), until it collects all the samples it needs. _offset.x >= 0 && _offset.y >= 0 discards images which are smaller than the windows window itself.
the The role of scale is to shrink the image to the minimum size to allow it to be fitted by a sliding window.