Path: news.mathworks.com!newsfeed-00.mathworks.com!newsfeed2.dallas1.level3.net!news.level3.com!postnews.google.com!s31g2000yqs.googlegroups.com!not-for-mail
From: ImageAnalyst <imageanalyst@mailinator.com>
Newsgroups: comp.soft-sys.matlab
Subject: Re: create grayscale star sign
Date: Sat, 4 Jul 2009 06:34:46 -0700 (PDT)
Organization: http://groups.google.com
Lines: 17
Message-ID: <0b84ba91-b15b-4dc1-9615-e9dff36570d8@s31g2000yqs.googlegroups.com>
References: <h2n7vl$5th$1@fred.mathworks.com>
NNTP-Posting-Host: 75.186.70.56
Mime-Version: 1.0
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable
X-Trace: posting.google.com 1246714486 2511 127.0.0.1 (4 Jul 2009 13:34:46 GMT)
X-Complaints-To: groups-abuse@google.com
NNTP-Posting-Date: Sat, 4 Jul 2009 13:34:46 +0000 (UTC)
Complaints-To: groups-abuse@google.com
Injection-Info: s31g2000yqs.googlegroups.com; posting-host=75.186.70.56; 
	posting-account=0rLUzAkAAABojYSRC64DkTbtiSCX77HH
User-Agent: G2/1.0
X-HTTP-UserAgent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; 
	GTB6; .NET CLR 1.1.4322; .NET CLR 2.0.50727; .NET CLR 3.0.04506.648; .NET CLR 
	3.5.21022),gzip(gfe),gzip(gfe)
Xref: news.mathworks.com comp.soft-sys.matlab:552771


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."