Image Processing in Python with Montage

J. Good, G. Berriman
{"title":"Image Processing in Python with Montage","authors":"J. Good, G. Berriman","doi":"10.5281/ZENODO.3379236","DOIUrl":null,"url":null,"abstract":"he Montage image mosaic engine has found wide applicability in astronomy re- search, integration into processing environments, and is an examplar application for the development of advanced cyber-infrastructure. It is written in C to provide performance and portability. Linking C/C++ libraries to the Python kernel at run time as binary ex- tensions allows them to run under Python at compiled speeds and enables users to take advantage of all the functionality in Python. We have built Python binary extensions of the 59 ANSI-C modules that make up version 5 of the Montage toolkit. This has in- volved a turning the code into a C library, with driver code fully separated to reproduce the calling sequence of the command-line tools; and then adding Python and C linkage code with the Cython library, which acts as a bridge between general C libraries and the Python interface. We will demonstrate how to use these Python binary extensions to perform im- age processing, including reprojecting and resampling images, rectifying background emission to a common level, creation of image mosaics that preserve the calibration and astrometric fidelity of the input images, creating visualizations with an adaptive stretch algorithm, processing HEALPix images, and analyzing and managing image metadata.","PeriodicalId":8459,"journal":{"name":"arXiv: Instrumentation and Methods for Astrophysics","volume":null,"pages":null},"PeriodicalIF":0.0000,"publicationDate":"2019-08-26","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"","citationCount":"0","resultStr":null,"platform":"Semanticscholar","paperid":null,"PeriodicalName":"arXiv: Instrumentation and Methods for Astrophysics","FirstCategoryId":"1085","ListUrlMain":"https://doi.org/10.5281/ZENODO.3379236","RegionNum":0,"RegionCategory":null,"ArticlePicture":[],"TitleCN":null,"AbstractTextCN":null,"PMCID":null,"EPubDate":"","PubModel":"","JCR":"","JCRName":"","Score":null,"Total":0}
引用次数: 0

Abstract

he Montage image mosaic engine has found wide applicability in astronomy re- search, integration into processing environments, and is an examplar application for the development of advanced cyber-infrastructure. It is written in C to provide performance and portability. Linking C/C++ libraries to the Python kernel at run time as binary ex- tensions allows them to run under Python at compiled speeds and enables users to take advantage of all the functionality in Python. We have built Python binary extensions of the 59 ANSI-C modules that make up version 5 of the Montage toolkit. This has in- volved a turning the code into a C library, with driver code fully separated to reproduce the calling sequence of the command-line tools; and then adding Python and C linkage code with the Cython library, which acts as a bridge between general C libraries and the Python interface. We will demonstrate how to use these Python binary extensions to perform im- age processing, including reprojecting and resampling images, rectifying background emission to a common level, creation of image mosaics that preserve the calibration and astrometric fidelity of the input images, creating visualizations with an adaptive stretch algorithm, processing HEALPix images, and analyzing and managing image metadata.
图像处理在Python与蒙太奇
蒙太奇图像拼接引擎在天文研究、集成处理环境中具有广泛的适用性,是先进网络基础设施发展的范例应用。它是用C语言编写的,以提供性能和可移植性。在运行时将C/ c++库作为二进制扩展链接到Python内核,允许它们以编译速度在Python下运行,并使用户能够利用Python中的所有功能。我们已经为组成第5版蒙太奇工具包的59个ANSI-C模块构建了Python二进制扩展。这涉及到将代码转换为C库,与驱动程序代码完全分离,以重现命令行工具的调用序列;然后使用Cython库添加Python和C链接代码,Cython库充当通用C库和Python接口之间的桥梁。我们将演示如何使用这些Python二进制扩展来执行图像处理,包括重新投影和重新采样图像,将背景发射校正到公共水平,创建图像马赛克以保持输入图像的校准和天体测量保真度,使用自适应拉伸算法创建可视化,处理HEALPix图像,以及分析和管理图像元数据。
本文章由计算机程序翻译,如有差异,请以英文原文为准。
求助全文
约1分钟内获得全文 求助全文
来源期刊
自引率
0.00%
发文量
0
×
引用
GB/T 7714-2015
复制
MLA
复制
APA
复制
导出至
BibTeX EndNote RefMan NoteFirst NoteExpress
×
提示
您的信息不完整,为了账户安全,请先补充。
现在去补充
×
提示
您因"违规操作"
具体请查看互助需知
我知道了
×
提示
确定
请完成安全验证×
copy
已复制链接
快去分享给好友吧!
我知道了
右上角分享
点击右上角分享
0
联系我们:info@booksci.cn Book学术提供免费学术资源搜索服务,方便国内外学者检索中英文文献。致力于提供最便捷和优质的服务体验。 Copyright © 2023 布克学术 All rights reserved.
京ICP备2023020795号-1
ghs 京公网安备 11010802042870号
Book学术文献互助
Book学术文献互助群
群 号:481959085
Book学术官方微信