I have a three dimension array ,for example image[50,50,36].
idl>midvalue=intarr(50,50,1]
idl>midvalue[*,*,0]=median(image(*,*,0:35),dimension=3)
thus ,I can get the median value in third dimension over all the pixels in the image.but,if i want to know the median value's subscription ,how can I do it?
The function of array_indices got a wrong result.I am confused about it.
thanks a lot.
|