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

Home » Public Forums » archive » IMAGE_STATISTICS for 3D Array
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
IMAGE_STATISTICS for 3D Array [message #70451] Mon, 12 April 2010 18:48
Ashok is currently offline  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
[Message index]
 
Read Message
Previous Topic: Printing in one line
Next Topic: Re: Printing in one line

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

Current Time: Wed Oct 08 15:06:27 PDT 2025

Total time taken to generate the page: 0.00464 seconds