Matlab image processing

Discussion in 'Programmer's Corner' started by sharkDawg, Oct 18, 2008.

  1. sharkDawg

    Thread Starter Member

    May 21, 2008
    10
    0
    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?
     
  2. scubasteve_911

    Senior Member

    Dec 27, 2007
    1,202
    1
    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
     
  3. sharkDawg

    Thread Starter Member

    May 21, 2008
    10
    0
    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.
     
Loading...