IMAGE_STATISTICS for 3D Array [message #70451] |
Mon, 12 April 2010 18:48 |
Ashok
Messages: 5 Registered: April 2010
|
Junior Member |
|
|
Hi,
I am a beginner in IDL. I am stuck in finding out the image statistics
using data of 3D array (sample, length, band).
I used the following command to find out image statistics.
ref_band = fltarr(s_size,l_size,7)
ref_band = reflective_bands(nw_sam:nw_sam +
roi_sam_size-1 , nw_lin:nw_lin + roi_len_size-1, band_no)
maskgrid = fltarr(s_size,l_size,7)
maskgrid(Grid_size*sregion
+grid_sstart:Grid_size*sregion
+Grid_size-1+grid_sstart,Grid_size*lregion
+grid_lstart:Grid_size*lregion+Grid_size-1+grid_lstart,band_ no)=1
IMAGE_STATISTICS, ref_band, MASK=maskgrid, $COUNT =
pixNum, MAXIMUM = pixMax, $
MEAN = pixMean, MINIMUM = pixMin, $
STDDEV = pixSTD
It says Mask dimensions incompatible with input data.
I have tried using 2D array omitting band, then it works in this
case.
Can I get image statistics of all bands at a time using
IMAGE_STATISTICS command?
Your clarification is highly appreciated.
Ashok
|
|
|