Bases: astropy.convolution.Kernel2D
2D Tophat filter kernel.
The Tophat filter is an isotropic smoothing filter. It can produce artifacts when applied repeatedly on the same data.
Parameters: | radius : int
mode : str, optional
factor : number, optional
|
---|
See also
Box2DKernel, Tophat2DKernel, MexicanHat2DKernel, Ring2DKernel, TrapezoidDisk2DKernel, AiryDisk2DKernel
Examples
Kernel response:
import matplotlib.pyplot as plt from astropy.convolution import Tophat2DKernel tophat_2D_kernel = Tophat2DKernel(40) plt.imshow(tophat_2D_kernel, interpolation='none', origin='lower') plt.xlabel('x [pixels]') plt.ylabel('y [pixels]') plt.colorbar() plt.show()(Source code, png, hires.png, pdf)