Path: news.mathworks.com!not-for-mail
From: <HIDDEN>
Newsgroups: comp.soft-sys.matlab
Subject: Re: create grayscale star sign
Date: Tue, 11 Aug 2009 11:32:19 +0000 (UTC)
Organization: The MathWorks, Inc.
Lines: 26
Message-ID: <h5rks3$91e$1@fred.mathworks.com>
References: <h2n7vl$5th$1@fred.mathworks.com> <0b84ba91-b15b-4dc1-9615-e9dff36570d8@s31g2000yqs.googlegroups.com> <h2nped$glo$1@fred.mathworks.com>
Reply-To: <HIDDEN>
NNTP-Posting-Host: webapp-05-blr.mathworks.com
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 8bit
X-Trace: fred.mathworks.com 1249990339 9262 172.30.248.35 (11 Aug 2009 11:32:19 GMT)
X-Complaints-To: news@mathworks.com
NNTP-Posting-Date: Tue, 11 Aug 2009 11:32:19 +0000 (UTC)
X-Newsreader: MATLAB Central Newsreader 1917726
Xref: news.mathworks.com comp.soft-sys.matlab:562375


"Julia Woody" <jwwoody0@gmail.com> wrote in message <h2nped$glo$1@fred.mathworks.com>...
> thanks for your response
> kind regards,
> julia
> 
> ImageAnalyst <imageanalyst@mailinator.com> wrote in message <0b84ba91-b15b-4dc1-9615-e9dff36570d8@s31g2000yqs.googlegroups.com>...
> > On Jul 4, 5:39?am, "Julia Woody" <jwwoo...@gmail.com> wrote:
> > > Hi all,
> > >
> > > I have a 256x256 sized image as;
> > >
> > > image=zeros(256,256)
> > >
> > > and I want to create a grayscale colored star sign on this image. How to do this? what is the code for this?
> > 
> > ---------------------------------------------------------------------------------------------------------
> > What does your star look like? I'd probably use poly2mask to create a
> > binary image and then use logical operations to "burn" it into your
> > original image.  But you have to know the coordinates of the vertices
> > of the star of course because there are an infinite number of shapes
> > that you could call "stars."

Hi,
I need a shape similar to star sign again, I want to draw the shape using cos function.  4 peaks (for north, south, west and east) will be enough for the star shape. Could you please give me example codes for this purpose

thanks, cheers