Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version
  1. Normally it returns true. For example it is needed by the line with code “if ( !nextImg() )”
  2. 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.

  3. 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.

  1. Normally it returns true. For example it is needed by the line with code “if ( !nextImg() )”
  2. 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.

  3. 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.