Hit ratio of random points in a rectangle on an image

I have a picture with five faces of men on it. I drew rectangles around their faces and plotted 25 random points on the whole image. My objective is to calculate the hit ratio of the random points inside the rectangles. Can anyone tell me how to do it?

Answers (0)

Asked:

on 23 Jan 2015

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!