jmurphy
Well-known member
A request for more help...
I am trying to create a bitmap image from a linear PixInsight image, with the resulting bitmap stretched like an unlinked STF.
I could create a copy of the ImageVariant, calculate the STF, apply this as a histogram stretch and then convert it to a bitmap.
The Bitmap::Render() method looks like a much better option, but I don't know how to create a LUT that is similar to an unlinked STF.
The bitmap will be used to paint a ScrollBox viewport. Extra graphics will be drawn on top - for example, the PhotometricLocalNormalization sample grid. The code will be the C++ equivalent of PreviewControl, written by Andres del Pozo. Although, if the equivalent of PreviewControl has already been written in C++, that would be even better!
Thanks!
John Murphy
I am trying to create a bitmap image from a linear PixInsight image, with the resulting bitmap stretched like an unlinked STF.
I could create a copy of the ImageVariant, calculate the STF, apply this as a histogram stretch and then convert it to a bitmap.
The Bitmap::Render() method looks like a much better option, but I don't know how to create a LUT that is similar to an unlinked STF.
The bitmap will be used to paint a ScrollBox viewport. Extra graphics will be drawn on top - for example, the PhotometricLocalNormalization sample grid. The code will be the C++ equivalent of PreviewControl, written by Andres del Pozo. Although, if the equivalent of PreviewControl has already been written in C++, that would be even better!
Thanks!
John Murphy