Save cv::Mat to FITS image? (opencv, C++)

81 Views Asked by At

I have an object of type cv::Mat in C++ that has my image pixel data loaded.

I would like to save the resulting image as FITS format, however attempting a call to imwrite with a .fits file extension simply results in:

could not find a writer for the specified extension in function 'imwrite_'

How would I go about saving an image saved in an object of type cv::Mat to a FITS file?

Thanks for reading my post, any guidance is appreciated.

0

There are 0 best solutions below