Excellent! It does exactly what is needed and saved so much of time. I am using this function heavily, it saved 300 lines of my code which was inefficient in finding the intersection points.
A suggestion to all: Ignore the post by M MA, this function works perfect, and is fast as stated by Douglas.
Thanks! And i hope you will help us all with such great functions in the future.
Sir,
I am getting error if I use this code to draw bounding box
"Attempted to access g(0,0); index must be a positive integer
g(y1,i) = 1;
There is an error there
Comment only
29 Apr 2012
Draw Bounding Box
This function draws bounding boxes around blobs in a binary image.
Comment only