analysis/
mg_local_moment.pro
includes main-level programRoutines
top mg_local_moment
result = mg_local_moment(image, width [, /double] [, sdev=float/double array] [, variance=float/double array] [, skewness=float/double array] [, kurtosis=float/double array] [, /edge_mirror] [, /edge_truncate] [, /edge_wrap] [, /edge_zero] [, /nan])
Computes the local moments for an array with a given window size.
Return value
array of the same size as image
input parameter, type will be float or
double depending on the type of image
and if the DOUBLE
keyword is
set
Parameters
- image in required type=numeric array
original image; will be converted to float or double
- width in required type=integer
size of window
Keywords
- double in optional type=boolean
set to do computations as doubles
- sdev out optional type=float/double array
set to a named variable to get local standard deviation
- variance out optional type=float/double array
set to a named variable to get local variance
- skewness out optional type=float/double array
set to a named variable to get local skewness
- kurtosis out optional type=float/double array
set to a named variable to get local kurtosis
- edge_mirror in optional type=boolean
set to compute edge values by mirroring
- edge_truncate in optional type=boolean
set to compute edge values by repeating
- edge_wrap in optional type=boolean
set to compute edge values by padding array with zeros
- edge_zero in optional type=boolean
set to compute edge values by wrapping
- nan in optional type=boolean
set to treat NaN as missing data
Examples
Try the main-level example program at the end of this file:
IDL> .run mg_local_moment
Other attributes
- Requires:
IDL 8.1
File attributes
Modification date: | Wed May 14 15:07:14 2014 |
Lines: | 52 |
Docformat: | rst rst |
Contact me if you have enhancement requests or bug fixes.