Ask Your Question
0

Reading FITS (Flexible Image Transport System) images

asked 2012-08-29 12:44:21 -0600

ali dariush gravatar image

Is there any option in openCV to read FITS (Flexible Image Transport System) images? Such image format has many applications in astronomical image processing.

edit retag flag offensive close merge delete

2 answers

Sort by ยป oldest newest most voted
1

answered 2012-08-30 07:49:21 -0600

Adi gravatar image

updated 2012-08-30 07:50:41 -0600

According to Wikipedia, "The FITS Support Office at NASA/GSFC maintains a list of libraries and platforms that currently support FITS."
Once you have a memory buffer with the image, cv:Mat will probably be able to handle it.

edit flag offensive delete link more

Comments

Many thanks. Indeed I can use the NASA FITS/IO libraries to handle FITS images. But my aim is to avoid using other libraries and just rely on OpenCV functionality.

ali dariush gravatar imageali dariush ( 2012-09-14 05:04:46 -0600 )edit

OpenCV is not meant to support a large set of specialized image and data I/O formats. These usually have their own tools. However, once you have pixel buffers, OpenCV can take it from there.

Adi gravatar imageAdi ( 2012-09-15 13:06:04 -0600 )edit
0

answered 2018-02-22 02:27:36 -0600

biquaternion gravatar image

You can map file into the memory by mmap (for example), and then construct cv::Mat object by data pointer. That's the most simple way, i think. In common, before that you should to parse your FITS header to know dimensions and other info to make cv::Mat.

edit flag offensive delete link more

Question Tools

Stats

Asked: 2012-08-29 12:44:21 -0600

Seen: 5,658 times

Last updated: Aug 30 '12