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

Home » Public Forums » archive » plot solid circle on image
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Switch to threaded view of this topic Create a new topic Submit Reply
plot solid circle on image [message #94664] Thu, 10 August 2017 10:21 Go to next message
Ali Gamal is currently offline  Ali Gamal
Messages: 98
Registered: June 2013
Member
I want to plot solid circle of position (x,y) on image. how can I do it?
Re: plot solid circle on image [message #94665 is a reply to message #94664] Thu, 10 August 2017 10:56 Go to previous messageGo to next message
Lajos Foldy is currently offline  Lajos Foldy
Messages: 176
Registered: December 2011
Senior Member
On Thursday, August 10, 2017 at 7:21:18 PM UTC+2, AGW wrote:
> I want to plot solid circle of position (x,y) on image. how can I do it?

Try polyfill:

a=dindgen(1000)/1000*!dpi*2
polyfill, 200*cos(a)+320, 200*sin(a)+256, /dev

regards,
Lajos
Re: plot solid circle on image [message #94668 is a reply to message #94664] Thu, 10 August 2017 12:10 Go to previous messageGo to next message
Ali Gamal is currently offline  Ali Gamal
Messages: 98
Registered: June 2013
Member
On Thursday, August 10, 2017 at 7:21:18 PM UTC+2, AGW wrote:
> I want to plot solid circle of position (x,y) on image. how can I do it?

I want to plot it at specific pixel (x1 = 214 & y1 = 546)
Re: plot solid circle on image [message #94671 is a reply to message #94668] Thu, 10 August 2017 23:54 Go to previous message
Helder Marchetto is currently offline  Helder Marchetto
Messages: 520
Registered: November 2011
Senior Member
On Thursday, August 10, 2017 at 9:10:23 PM UTC+2, AGW wrote:
> On Thursday, August 10, 2017 at 7:21:18 PM UTC+2, AGW wrote:
>> I want to plot solid circle of position (x,y) on image. how can I do it?
>
> I want to plot it at specific pixel (x1 = 214 & y1 = 546)

Check the math of the circle equation here:
https://en.wikipedia.org/wiki/Circle
Look "Equations - Cartesian coordinates" for the parametric form using the trigonometric functions.
This should get you in the right direction (if not, check what a and b are).

Cheers,
Helder
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: face detection (via Python bridge)
Next Topic: Fill Missing values with NaN

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

Current Time: Wed Oct 08 15:12:51 PDT 2025

Total time taken to generate the page: 0.00627 seconds