From: Erik on
"Bernhard " <MadStan(a)web.de> wrote in message <hn8vlu$aul$1(a)fred.mathworks.com>...
> Walter Roberson <roberson(a)hushmail.com> wrote in message <hn8un7$gbo$1(a)canopus.cc.umanitoba.ca>...
> > Bernhard wrote:
> >
> > > thanks, getframe() does the job! But maybe there is a better way to
> > > solve my problem without using fill(). How would you color a closed
> > > contour. Think of a circle on a "white" background and I want to color
> > > the inside of the circle black. I have the circle and the white
> > > background as a matrix. If the matrix element belongs to the contour its
> > > value is one otherwise its value is zero.
> > > Seems like an easy task but it's not.
> >
> > roifill(Background, Mask)
> >
> > looks like it would do the job. If not, you could trace the boundary to get
> > the vertices of the boundary, and then use roifill(Background, X, Y)
>
> thanks for your help, i will try out some things and will post my final solution. by now getframe() suits best




Did you ever find a better solution than getframe()? I'm trying to do the exact same thing.
 | 
Pages: 1
Prev: Load Flow Analysis
Next: ODE Help