Region inside the CONTOUR [message #45064] |
Tue, 02 August 2005 01:25 |
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
|
|
|