<div dir="ltr">Mark,<div><br></div><div>The stretching scheme is based on the spec in section 8.5.6 from this PixInsight doc: <a href="https://pixinsight.com/doc/docs/XISF-1.0-spec/XISF-1.0-spec.html" target="_blank">https://pixinsight.com/doc/docs/XISF-1.0-spec/XISF-1.0-spec.html</a><div>See <a href="https://invent.kde.org/education/kstars/-/blob/master/kstars/fitsviewer/stretch.cpp" target="_blank">https://invent.kde.org/education/kstars/-/blob/master/kstars/fitsviewer/stretch.cpp</a><br><div>Not sure what to say about the FITS header.</div></div></div><div><br></div><div>Hy</div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Sat, Nov 13, 2021 at 7:18 AM Mark <<a href="mailto:msproul@skychariot.com">msproul@skychariot.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">K-Stars does the best job of any program I have used to properly display <br>
a FITS image.  It interprets the fits header and stretches the image <br>
fantastically.<br>
<br>
Is there any documentation on how it does this?  I really want to <br>
understand how the fits header data is used to make the image so good.<br>
<br>
Thanks<br>
Mark<br>
<br>
</blockquote></div>