Talk About Network

Google


Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Programming > Idl-pvware > Re: Regarding t...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 15 of 19 Topic 5470 of 6457
Post > Topic >>

Re: Regarding the Fit_Ellipse Program

by pgrigis@[EMAIL PROTECTED] Feb 28, 2008 at 07:44 AM

plim.dream...@[EMAIL PROTECTED]
 wrote:
> > May ask again what are your staring points, before you do the contour?
> > How are these points defind? I have this feeling that there may be a
> > much
> > simpler way...
> >
> > Paolo
>
> Hi Paolo and David,
> Hummm, well, before I do the contour I just have a square field full
> of points, so a big array of x,y (this is input data, I do not choose
> the locations of these points, i read them in from a file), and to
> each point I have a density-value attributed, rho.  The points are not
> in a matrix, they are randomly distributed in the field, so I do a:
>
contour,rho,x,y,levels=level,triangulation=tri,path_xy=policons2,path_info=infocons2,/
> path_data_coords,/path_doublt,/noerase,/data

I don't think this is the right approach to the problem.
What I would do is to get a regularly gridded array
for rho first (for instance with trigrid, but there may
be other possibilities).
Once you have that, it is easy to produce an input array
suitable for fit_ellipse (just set all points higher (or lower)
than a threshold to 0, and the others to 1).

Try something like:

TRIANGULATE, x, y, Triangles
Result = TRIGRID( x,y,rho, Triangles,[dx,dy],[minx,miny,maxx,maxy]] )

where dx and dy is the spacing of the regular grid and minx etc. are
the boundaries.

Cheers,
Paolo

> That provides me with the xy positions of the vertices of several
> different contours in the field all of which have the same density
> level.  For each contour I want to fit and plot an ellipse and obtain
> the parameters.
> Hope this helps,
> Bruno
 




 19 Posts in Topic:
Regarding the Fit_Ellipse Program
plim.dreaming@[EMAIL PROT  2008-02-26 06:28:22 
Re: Regarding the Fit_Ellipse Program
David Fanning <news@[E  2008-02-26 07:46:15 
Re: Regarding the Fit_Ellipse Program
plim.dreaming@[EMAIL PROT  2008-02-26 08:57:08 
Re: Regarding the Fit_Ellipse Program
David Fanning <news@[E  2008-02-26 13:44:00 
Re: Regarding the Fit_Ellipse Program
plim.dreaming@[EMAIL PROT  2008-02-26 13:38:29 
Re: Regarding the Fit_Ellipse Program
pgrigis@[EMAIL PROTECTED]  2008-02-26 13:51:51 
Re: Regarding the Fit_Ellipse Program
pgrigis@[EMAIL PROTECTED]  2008-02-26 14:06:07 
Re: Regarding the Fit_Ellipse Program
David Fanning <news@[E  2008-02-26 16:16:48 
Re: Regarding the Fit_Ellipse Program
plim.dreaming@[EMAIL PROT  2008-02-26 14:19:04 
Re: Regarding the Fit_Ellipse Program
pgrigis@[EMAIL PROTECTED]  2008-02-26 14:28:49 
Re: Regarding the Fit_Ellipse Program
plim.dreaming@[EMAIL PROT  2008-02-27 15:47:29 
Re: Regarding the Fit_Ellipse Program
pgrigis@[EMAIL PROTECTED]  2008-02-27 15:56:13 
Re: Regarding the Fit_Ellipse Program
David Fanning <news@[E  2008-02-27 17:00:20 
Re: Regarding the Fit_Ellipse Program
plim.dreaming@[EMAIL PROT  2008-02-28 05:46:39 
Re: Regarding the Fit_Ellipse Program
pgrigis@[EMAIL PROTECTED]  2008-02-28 07:44:13 
Re: Regarding the Fit_Ellipse Program
plim.dreaming@[EMAIL PROT  2008-02-28 08:30:04 
Re: Regarding the Fit_Ellipse Program
David Fanning <news@[E  2008-02-28 10:27:00 
Re: Regarding the Fit_Ellipse Program
pgrigis@[EMAIL PROTECTED]  2008-02-28 08:53:34 
Re: Regarding the Fit_Ellipse Program
pgrigis@[EMAIL PROTECTED]  2008-02-28 09:10:25 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Thu Dec 4 0:09:18 CST 2008.