From: M Ladderman on
I have the same problem. I have a number of points I get from ashape, and I can plot these using line() or plot() and I get the perimeter of my ROI. Now I want to make a binary mask out of it. I have been trying for a long time but I am stuck!


ImageAnalyst <imageanalyst(a)mailinator.com> wrote in message <ffc6ec31-0c0e-4a62-af2c-bf80be198f53(a)r19g2000yqb.googlegroups.com>...
> ahmad yahya:
> I think you mean "draw" - "drown" means to die by filling your lungs
> with water, which I don't think you want to do.
>
> Have you taken a look at the line() function to draw into the
> graphical overlay? If you want to draw into the image itself, then
> you can use the createMask method of imline. Write back if you get
> stuck.
From: M Ladderman on
using the imline() function with createMask will do this, but be sure to have image toolbox 6.0 and up.

"M Ladderman" <mirresimons(a)gmail.com> wrote in message <hqhhk5$np6$1(a)fred.mathworks.com>...
> I have the same problem. I have a number of points I get from ashape, and I can plot these using line() or plot() and I get the perimeter of my ROI. Now I want to make a binary mask out of it. I have been trying for a long time but I am stuck!
>
>
> ImageAnalyst <imageanalyst(a)mailinator.com> wrote in message <ffc6ec31-0c0e-4a62-af2c-bf80be198f53(a)r19g2000yqb.googlegroups.com>...
> > ahmad yahya:
> > I think you mean "draw" - "drown" means to die by filling your lungs
> > with water, which I don't think you want to do.
> >
> > Have you taken a look at the line() function to draw into the
> > graphical overlay? If you want to draw into the image itself, then
> > you can use the createMask method of imline. Write back if you get
> > stuck.
From: ImageAnalyst on
The easiest way to make a binary mask from a list of coordinates is to
just use the poly2mask() function in the image processing toolbox.
 | 
Pages: 1
Prev: Matlab 32 Bit on 64 bit OS
Next: Imaginary numbers