{"title":"在天文图像中填充遮蔽数据的简便稳健方法","authors":"Pieter van Dokkum, Imad Pasha","doi":"10.1088/1538-3873/ad2866","DOIUrl":null,"url":null,"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 <monospace>maskfill</monospace>, an open-source MIT licensed Python package (<ext-link ext-link-type=\"uri\" xlink:href=\"https://github.com/dokkum/maskfill\" xlink:type=\"simple\">https://github.com/dokkum/maskfill</ext-link>). Its performance is illustrated with several examples, and compared to several alternative interpolation schemes.","PeriodicalId":20820,"journal":{"name":"Publications of the Astronomical Society of the Pacific","volume":"724 1","pages":""},"PeriodicalIF":3.3000,"publicationDate":"2024-03-13","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"","citationCount":"0","resultStr":"{\"title\":\"A Robust and Simple Method for Filling in Masked Data in Astronomical Images\",\"authors\":\"Pieter van Dokkum, Imad Pasha\",\"doi\":\"10.1088/1538-3873/ad2866\",\"DOIUrl\":null,\"url\":null,\"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 <monospace>maskfill</monospace>, an open-source MIT licensed Python package (<ext-link ext-link-type=\\\"uri\\\" xlink:href=\\\"https://github.com/dokkum/maskfill\\\" xlink:type=\\\"simple\\\">https://github.com/dokkum/maskfill</ext-link>). Its performance is illustrated with several examples, and compared to several alternative interpolation schemes.\",\"PeriodicalId\":20820,\"journal\":{\"name\":\"Publications of the Astronomical Society of the Pacific\",\"volume\":\"724 1\",\"pages\":\"\"},\"PeriodicalIF\":3.3000,\"publicationDate\":\"2024-03-13\",\"publicationTypes\":\"Journal Article\",\"fieldsOfStudy\":null,\"isOpenAccess\":false,\"openAccessPdf\":\"\",\"citationCount\":\"0\",\"resultStr\":null,\"platform\":\"Semanticscholar\",\"paperid\":null,\"PeriodicalName\":\"Publications of the Astronomical Society of the Pacific\",\"FirstCategoryId\":\"101\",\"ListUrlMain\":\"https://doi.org/10.1088/1538-3873/ad2866\",\"RegionNum\":3,\"RegionCategory\":\"物理与天体物理\",\"ArticlePicture\":[],\"TitleCN\":null,\"AbstractTextCN\":null,\"PMCID\":null,\"EPubDate\":\"\",\"PubModel\":\"\",\"JCR\":\"Q2\",\"JCRName\":\"ASTRONOMY & ASTROPHYSICS\",\"Score\":null,\"Total\":0}","platform":"Semanticscholar","paperid":null,"PeriodicalName":"Publications of the Astronomical Society of the Pacific","FirstCategoryId":"101","ListUrlMain":"https://doi.org/10.1088/1538-3873/ad2866","RegionNum":3,"RegionCategory":"物理与天体物理","ArticlePicture":[],"TitleCN":null,"AbstractTextCN":null,"PMCID":null,"EPubDate":"","PubModel":"","JCR":"Q2","JCRName":"ASTRONOMY & ASTROPHYSICS","Score":null,"Total":0}
引用次数: 0
摘要
天文图像中经常会有信息缺失或不需要信息的区域,例如坏像素、坏柱、宇宙射线、遮挡物体或不完美的模型减法产生的残差。在某些情况下,对这些区域进行填充可能是必要的或可取的。现有的大多数方法都使用低阶插值来完成这项任务。本文介绍了一种利用遮挡区域外的像素所包含的全部信息的方法。使用迭代中值滤波法向内推断这些边缘像素。这使得填充区域内的空间分辨率变化平滑,并确保屏蔽像素和良好像素之间的无缝过渡。连续、狭窄特征中的间隙即使很大,也能高保真地重建。该方法在 MIT 授权的开源 Python 软件包 maskfill 中实现 (https://github.com/dokkum/maskfill)。我们用几个例子说明了该方法的性能,并将其与其他几种插值方案进行了比较。
A Robust and Simple Method for Filling in Masked Data in Astronomical Images
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 (https://github.com/dokkum/maskfill). Its performance is illustrated with several examples, and compared to several alternative interpolation schemes.
期刊介绍:
The Publications of the Astronomical Society of the Pacific (PASP), the technical journal of the Astronomical Society of the Pacific (ASP), has been published regularly since 1889, and is an integral part of the ASP''s mission to advance the science of astronomy and disseminate astronomical information. The journal provides an outlet for astronomical results of a scientific nature and serves to keep readers in touch with current astronomical research. It contains refereed research and instrumentation articles, invited and contributed reviews, tutorials, and dissertation summaries.