Closed alexhelms closed 10 hours ago
alex@indiallsky:~/indi-allsky $ git diff
diff --git a/indi_allsky/stretch/mode2_mtf.py b/indi_allsky/stretch/mode2_mtf.py
index 706a982e..dae12f89 100644
--- a/indi_allsky/stretch/mode2_mtf.py
+++ b/indi_allsky/stretch/mode2_mtf.py
@@ -41,7 +41,7 @@ class IndiAllSky_Mode2_MTF_Stretch(IndiAllSky_Stretch_Base):
data_max = (2 ** image_bit_depth) - 1
- range_array = numpy.arange(0, data_max, dtype=numpy.float32)
+ range_array = numpy.arange(0, data_max + 1, dtype=numpy.float32)
shadows_val = int(self.shadows * data_max)
highlights_val = int(self.highlights * data_max)
Seems to resolve the exception.
I do not know why this did not come up in my testing. Merged #1486 to fix.
Just pulled main to try out MTF stretch and I'm getting an exception when processing the image:
I turned on MTF and changed midtones to 0.25.