Hello,
I have the following lines in my code for calculation of mean values in a ROI in a 3-colour image:
TV, I_disp, TRUE=1
ROI=CW_DEFROI(WG_Window_I, IMAGE_SIZE=[500,500], OFFSET=[0,0])
ROI_X=ROI MOD 500
ROI_Y=ROI/500
M=mean(I_disp[2, ROI_X, ROI_Y])
When I select a large ROI (2500 points) in a 500x500 image with CW_DEFROI, IDL returns an "Array has too many elements" error in the last line "M=mean(I_disp[2, ROI_X, ROI_Y])"
I would appreciate if anyone could explain me why do I get this error and how to solve this problem without consuming too much computer memory.
Alexander.
|