<table><tr><td style="">murveit created this revision.<br />murveit added a reviewer: mutlaqja.<br />Herald added a project: KDE Edu.<br />Herald added a subscriber: kde-edu.<br />murveit requested review of this revision.
</td><a style="text-decoration: none; padding: 4px 8px; margin: 0 8px 8px; float: right; color: #464C5C; font-weight: bold; border-radius: 3px; background-color: #F7F7F9; background-image: linear-gradient(to bottom,#fff,#f1f0f1); display: inline-block; border: 1px solid rgba(71,87,120,.2);" href="https://phabricator.kde.org/D27670">View Revision</a></tr></table><br /><div><strong>REVISION SUMMARY</strong><div><p>When there were small ranges of values, e.g. in bias images, a lack of consistency in binning logic caused the median algorithm to fail.</p></div></div><br /><div><strong>TEST PLAN</strong><div><p>Median values will be the same for most images. <br />
Some images had median calculation failures because of an off-by-one error caused by an inconsistency on bin assignment in histogram computations<br />
For instance, in <a href="https://indilib.org/forum/ekos/6520-median-computation-in-fitsviewer-wrong.html#50100" class="remarkup-link" target="_blank" rel="noreferrer">https://indilib.org/forum/ekos/6520-median-computation-in-fitsviewer-wrong.html#50100</a> Herrhausen provided an image which previously<br />
got median values of 0. With this fix, the correct median values (768 for each channel) should be calculated.</p></div></div><br /><div><strong>REPOSITORY</strong><div><div>R321 KStars</div></div></div><br /><div><strong>BRANCH</strong><div><div>median-fix (branched from master)</div></div></div><br /><div><strong>REVISION DETAIL</strong><div><a href="https://phabricator.kde.org/D27670">https://phabricator.kde.org/D27670</a></div></div><br /><div><strong>AFFECTED FILES</strong><div><div>kstars/fitsviewer/fitshistogram.cpp</div></div></div><br /><div><strong>To: </strong>murveit, mutlaqja<br /><strong>Cc: </strong>kde-edu, narvaez, apol<br /></div>