comp.lang.idl-pvwave archive
Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado

Home » Public Forums » archive » Re: making a circle of certain values
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
Re: making a circle of certain values [message #56131 is a reply to message #56130] Mon, 01 October 2007 13:09 Go to previous message
David Fanning is currently offline  David Fanning
Messages: 11724
Registered: August 2001
Senior Member
rpertaub@gmail.com writes:

> I have a set of data points (x,y coordinates) that can be plotted on
> my 1240,1024 array. However, they are sparse x,y spots across the
> image, and I want to 'thicken' it by drawing a circle with my x,y as
> centers. I want to give it a certain radius and a certain value too,
> so that the pixels in the circle (the filling) have values and can
> thus contribute to my rgb image...
> anyone know how to draw a circle, and assign a value to pixels within
> that circle?

I'd use the most useful routine I ever downloaded from the NASA
Astronomy library: TVCIRCLE.

You will probably have to write a new output keyword for that routine
to recover the XY locations of the polygon it creates for the circle.
Then use POLYFILLV to find the indices of the image inside that polygon.

Cheers,

David

--
David Fanning, Ph.D.
Fanning Software Consulting, Inc.
Coyote's Guide to IDL Programming: http://www.dfanning.com/
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: SetPixelData Error
Next Topic: label x axis

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ] [ PDF ]

Current Time: Sat Oct 11 14:29:50 PDT 2025

Total time taken to generate the page: 0.95747 seconds