Bases: astropy.convolution.Kernel2D
2D Ring filter kernel.
The Ring filter kernel is the difference between two Tophat kernels of different width. This kernel is useful for, e.g., background estimation.
Parameters: | radius_in : number
width : number
mode: str, optional
factor : number, optional
|
---|
See also
Box2DKernel, Gaussian2DKernel, MexicanHat2DKernel, Tophat2DKernel
Examples
Kernel response:
import matplotlib.pyplot as plt from astropy.convolution import Ring2DKernel ring_2D_kernel = Ring2DKernel(9, 8) plt.imshow(ring_2D_kernel, interpolation='none', origin='lower') plt.xlabel('x [pixels]') plt.ylabel('y [pixels]') plt.colorbar() plt.show()(Source code, png, hires.png, pdf)