1 | initial version |
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.