1 | initial version |
For a single scale, it should be (img.width-win.width) x (img.height-win.height)
.
For the other scales, I would loop to increase the minimal window size by a scale factor until reach the biggest window size enclosed in the image (not sure about the dimension of the biggest detection window).
You will have to substract your true positive and normally also the (unknown (if you don't tweak the code I think you cannot get this informaiton) numbers of) neighbors of the true positive as there should be multiple detections near the final returned detection.
2 | No.2 Revision |
For a single scale, it should be (img.width-win.width) x (img.height-win.height)
.
For the other scales, I would loop to increase the minimal window size by a scale factor until reach the biggest window size enclosed in the image (not sure about the dimension of the biggest detection window).
You will have to substract your true positive and normally positive.
A bit overkill: you could also substract the (unknown (if you don't tweak the code I think you cannot get this informaiton) information) numbers of) neighbors of the true positive as there should be multiple detections near the final returned detection.