Matlab image processing

Thread Starter

sharkDawg

Joined May 21, 2008
10
Hi guys,

Basically I've segmented ROI's from my image, and I now want to overlay the perimeter of these ROI's on the original image, but I am having difficulty in doing so. :( Anyone know how I might go about doing this?
 

scubasteve_911

Joined Dec 27, 2007
1,203
Have you seen the matlab pendulum tracking example? They define a region-of-interest, crop it, then process it.

They also do some overlaying of lines, etc.

Steve
 

Thread Starter

sharkDawg

Joined May 21, 2008
10
Ok, new problem :). I'm trying to modify example 2 , from here, to work with my own 1024 X 1024 image. However I run into difficulties in the last few lines :

mask = repmat(mask,[1,1,3]);
masked_image = zeros(m,n,3,'uint8');
masked_image(mask) = I(mask);

I get the "Index exceeds matrix dimensions" error.

I assume its something in these three lines that has to change?
Thanks.
 
Top