smooth¶
- sunkit_image.trace.smooth(image, width, nanopt='replace')[source]¶
Python implementation of the IDL’s
smooth
.- Parameters:
image (
numpy.ndarray
) – Image to be filtered.width (
int
) – Width of the boxcar window. Thewidth
should always be odd but if even value is given thenwidth + 1
is used as the width of the boxcar.nanopt ({"propagate" | "replace"}) – It decides whether to
propagate
NAN’s orreplace
them.
- Returns:
numpy.ndarray
– Smoothed image.
References
Emmalg’s answer on stackoverflow https://stackoverflow.com/a/35777966