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

Home » Public Forums » archive » Re: Regarding the Fit_Ellipse Program
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: Regarding the Fit_Ellipse Program [message #58971 is a reply to message #58876] Tue, 26 February 2008 13:38 Go to previous message
plim.dreaming is currently offline  plim.dreaming
Messages: 22
Registered: February 2008
Junior Member
So, I used contour to obtain the x and y positions of a certain
contour level and labeled those arrays as posx and posy.
then obtained the positions in terms of the device, because that is
what polyfillv uses:
D = convert_coord(posx,posy, /to_device)

I did a print,!D.x_size to get the device sizes (it gave me the famous
17780) so I did:
result = polyfillv(D(0,*),D(1,*),17780,17780)
plots,fit_ellipse(result)

It is unable to allocate memory for the fit_ellipse part.
Is the !D.x_size related to the monitor size or the monitor resolution
or the postscript resolution or non-of-the-above?

And with the IDLanROI I finally made the object
blob = OBJ_NEW( 'IDLanROI', posx, posy ) and have to say that I
certainly was/am scared by wording such as: "Init methods are special
life cycle methods..."!?
I am right now trying to figure out how to type in this new language
Result = Obj->[IDLanROI::]ComputeMask(
to get from here to fitting an ellipse to the object and getting the
semi-major and semi-minor axis.

Much thanks,
"Bruno Schmidt of Northern Florida State University"

- so honey what did you do at work all day today?
- oh, i drew an ellipse...
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Previous Topic: Re: Labeling the x-axis with a non standard time string
Next Topic: Re: Create an ENVI .img file

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

Current Time: Sun Oct 12 10:33:25 PDT 2025

Total time taken to generate the page: 1.20327 seconds