Modifies the auto-stretch algorithm.
Also, the UI is modified. When images are viewed, they can be viewed stretched or unstretched
and this can be toggled via a button in fitsviewer or on the floating tool bar in a fitsview.
This stretching does not modify the contents of the image.
Details
Open a variety of fits images in fitsviewer and from captures in the capture, focus, align and guide tabs.
See if they can be stretched and unstretched.
Diff Detail
- Repository
- R321 KStars
- Branch
- new-stretch (branched from master)
- Lint
No Linters Available - Unit
No Unit Test Coverage - Build Status
Buildable 18841 Build 18859: arc lint + arc unit
This is great thanks! It fails to compile:
kstars/fitsviewer/fitsview.cpp:406: error: undefined reference to Stretch<long>::Stretch(long*, int, int, int)
kstars/fitsviewer/fitsview.cpp:412: error: undefined reference to `Stretch<long>::computeParams()'
Even though FITS options AutoStretch is enabled, the FITS viewer does not automaitcally auto-stretch when loading a new image.
@lancaster
@wreissenberger
@TallFurryMan
Can you please test this and provide feedback?
The toggle button does not appear to be "checked" when it is turned on like the other ones I made do. Can you make it get highlighted/checked when you click it to turn it on?
Removed some of the templating and refactored to simplify code.
Added highlighting to the stretch buttons when the image is stretched.
Needed to run initDisplayImage always in rescale, and not sure why.
Will continue to investigate.