A robust and simple method for filling in masked data in astronomical images
Authors:
- Pieter van DokkumPDPieter van Dokkum
- Imad PashaIPImad Pasha
Preprint
Abstract
Astronomical images often have regions with missing or unwanted information, such as bad pixels, bad columns, cosmic rays, masked objects, or residuals from imperfect model subtractions. In certain situations it can be essential, or preferable, to fill in these regions. Most existing methods use low order interpolations for this task. In this paper a method is described that uses the full information that is contained in the pixels just outside masked regions. These edge pixels are extrapolated inwards, using iterative median filtering. This leads to a smoothly varying spatial resolution within the filled-in regions, and ensures seamless transitions between masked pixels and good pixels. Gaps in continuous, narrow features can be reconstructed with high fidelity, even if they are large. The method is implemented in maskfill, an open-source MIT licensed Python package. Its performance is illustrated with several examples, and compared to several alternative interpolation schemes.Keywords
All Related Versions
This publication has 28 references indexed in Scilit:
- Multi-resolution Filtering: An Empirical Method for Isolating Faint, Extended Emission in Dragonfly Data and Other Low Resolution ImagesPublications of the Astronomical Society of the Pacific, 2020
- Deep Image PriorInternational Journal of Computer Vision, 2020
- THE DIFFERENCE IMAGING PIPELINE FOR THE TRANSIENT SEARCH IN THE DARK ENERGY SURVEYThe Astronomical Journal, 2015
- A method of complex background estimation in astronomical imagesMonthly Notices of the Royal Astronomical Society, 2015
- Bad Pixel Modified Interpolation for Astronomical ImagesPublications of the Astronomical Society of the Pacific, 2013
- Angular Differential Imaging: A Powerful High‐Contrast Imaging TechniqueThe Astrophysical Journal, 2006
- The H$\mathsf{\alpha}$ galaxy surveyAstronomy & Astrophysics, 2004
- Detailed Structural Decomposition of Galaxy ImagesThe Astronomical Journal, 2002
- Drizzle: A Method for the Linear Reconstruction of Undersampled ImagesPublications of the Astronomical Society of the Pacific, 2002
- The cosmic ray background in charge coupled devicesPublications of the Astronomical Society of the Pacific, 1979