Image Processing in Python With Montage
John Good, G. Bruce Berriman

TL;DR
This paper presents a Python interface for the Montage image mosaic engine, enabling efficient image processing tasks like reprojection, resampling, and mosaic creation by integrating C modules with Python.
Contribution
The authors developed Python binary extensions for Montage's C modules, allowing users to perform advanced image processing within Python at compiled speeds.
Findings
Enabled Python-based image reprojection and resampling
Facilitated creation of high-fidelity image mosaics
Supported processing of HEALPix images and metadata management
Abstract
The Montage image mosaic engine has found wide applicability in astronomy research, 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 extensions 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 involved 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…
Peer Reviews
No public reviews on file for this paper yet. If you reviewed it on a platform where reviews are public (OpenReview, ICLR, NeurIPS, ICML), you can paste yours below so the community can read it here.
Videos
No videos yet. Explain this paper in a talk, walkthrough, or lecture? Add one.
Taxonomy
TopicsAstronomy and Astrophysical Research
