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

Home » Public Forums » archive » Region inside the CONTOUR
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
Region inside the CONTOUR [message #45064] Tue, 02 August 2005 01:25
James[1] is currently offline  James[1]
Messages: 9
Registered: August 2004
Junior Member
Hi !

Can anyone help me with a problem ? There is a ROI in the image for which
I want to get some statistics. Basically what are needed: total flux of the
area inside the ROI and the parameters of the ellipse, fitted to that
region.
Is there ant robust way of doing that ?

I have several ROIs in the image and this is how I define them:

.....

contour, im1, PATH_XY=xy, PATH_INFO=info, LEVELS=[3*sigma],
PATH_DATA_COORDS=1

data_index = WHERE(info(*).N GT 15) ; ---- select regions larger than 15
pixels
data_total = size (data_index,/N_ELEMENTS)
my_roi = PTRARR (data_total, /ALLOCATE_HEAP)

for i=0L, data_total-1 do begin
s = [indgen(info(data_index[i]).N),0]
*my_roi[i] = xy(*,info(data_index[i]).offset + s)
endfor

.......

Thank you in advance !
James
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: What do *you* have in your IDL_STARTUP file?
Next Topic: Re: Region inside the CONTOUR

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

Current Time: Wed Oct 08 13:37:14 PDT 2025

Total time taken to generate the page: 0.00486 seconds