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.