ASI120MC capture support

I’m now able to get an image from my ASI120MC:

zwasi120

The colour is all wrong. It turns out that whilst the header file gives the image format define as “RGB24”, it’s actually BGR24. I can probably write them to an AVI file unswapped and have it work, but I will need to swap BGR24 to RGB24 to use Qt’s QImage type. It doesn’t appear to be able to create a QImage from BGR24 data.

Actually, I lied. Qt has a QImage::rgbSwapped() function that will switch the red and blue over in a QImage. Sorted then.

This entry was posted in Astroimaging, Astronomy, Computing, Linux and tagged , , , . Bookmark the permalink.

Leave a Reply

Your email address will not be published. Required fields are marked *