X
PrevPrev Go to previous topic
NextNext Go to next topic
Last Post 20 Mar 2012 05:39 AM by  anon
Multiple ROIS - Stats - ADDR Error
 4 Replies
Sort:
You are not authorized to post a reply.
Author Messages

anon



New Member


Posts:
New Member


--
20 Mar 2012 05:39 AM
    I have been using the code below to automate the process of calculating ROI stats for multiple ROI's in ENVI+IDL 4.8 envi_select,title='input filename',fid=fid,pos=pos name=envi_pickfile(title='roi file',filter='*.roi') envi_restore_rois,name roi_ids=envi_get_roi_ids(fid=fid,roi_names=roi_names) npts=1100 pts=fltarr(5,npts) base=widget_auto_base(title='roi selection') wm=widget_multi(base,list=roi_names,uvalue='list',/auto) result=auto_wid_mng(base) ptr=where (result.list eq 1, count) result=dblarr(n_elements(pos)) openw,1,'stats_calc.txt' for i=0L, count -1 do begin for j=0L,n_elements(pos) -1 do begin dims=[envi_get_roi_dims_ptr(roi_ids[ptr[i]]),0,0,0,0] envi_stats_doit,fid=fid,dims=dims,pos=pos,comp_flag=0,$ report_flag=0,mean=mean,stdv=stdv,dmin=dmin,dmax=dmax endfor printf,1,roi_names[ptr[i]],dmin,dmax,mean,stdv,format="(A,2(F12.6),2(F14.6),2(F14.6),2(F14.6))" endfor close,1 end however when I am using more than 750 ROI's I get the following error: % Compiled module: $MAIN$. % Out of range subscript encountered: ADDR. % Execution halted at: ENVI_ROI_GET_ADDR % ENVI_GET_ROI % ENVI_STATS_DOIT Any ideas why it stops to 750 and how I can fix that? Thanks in advance Dimitris

    Deleted User



    New Member


    Posts:
    New Member


    --
    20 Mar 2012 07:39 AM
    I'm afraid that I don't have any ideas why it's crashing with a larger number of ROIs. I recommend that you submit this issue to Exelis VIS tech support (support@exelisvis.com or (303) 402-4671, or your local distributor). Tech support can work with you to track down what might be triggering this error.. Peg

    Deleted User



    New Member


    Posts:
    New Member


    --
    20 Mar 2012 08:01 AM
    Thanks Peg, I will forward this to the tech team. However I had the feeling that the Exelis tech team were also contributing to this forum. D.

    Deleted User



    New Member


    Posts:
    New Member


    --
    20 Mar 2012 08:08 AM
    Yes, we (Exelis VIS Tech Support) do often contribute to this forum. But it is intended mainly for ENVI users to communicate with each other. We don't always get to the forum as quickly as we get to our regular Tech Support queue, and it is more difficult to do the type of exchange of data and information that is necessary to track down these types of errors via the forum. It is almost always faster and more efficient to go directly to Tech Support when you are running into problems in the software. - Peg

    Deleted User



    New Member


    Posts:
    New Member


    --
    20 Mar 2012 09:35 AM
    Cheers Peg, I will keep that in mind for future problems (hopefully not too many) D.
    You are not authorized to post a reply.