Hi, I have an grayscale image matrix (basicly a 0,1 matrix). I am "drawing" a binary image using rectangle(). ( using a for loop on the matrix to identify the color and draw a each rectangle). (i know i can use imshow and enter a matrix there is a reason why im not using it). so far it works fine what i want to do next is select a region (say rectangular or circular). i want to know which of the rectangles the region is covering. is there a way to do this ? thanks
See code in my comment here http://www.mathworks.com/matlabcentral/answers/52570#comment_108924 to find out if rectangles overlap.