Hello,
I want to calculate median value for panchromatic raster image (1 band greyscale). Could you explain me how to adapt this function in envi+idl 5.1 to my needs?
Like i understand, and i don't understand much from idl, it's a median filter function.
; Create a simple image and display it:
D = SIN(DIST(200)^0.8) & TVSCL, D
; Display D median-filtered with a width of 9:
TVSCL, MEDIAN(D, 9)
; Print the median of a four-element array, with and without
; the EVEN keyword:
PRINT, MEDIAN([1, 2, 3, 4], /EVEN)
PRINT, MEDIAN([1, 2, 3, 4])
IDL prints:
2.50000
3.00000
Best regards,
Jevgenijs
|