Remove asFloat
@@ -2079,23 +2079,6 @@ class Reader:
pixels = itershift(pixels)
return x, y, pixels, info
- def asFloat(self, maxval=1.0):
- """Return image pixels as per :meth:`asDirect` method, but scale
- all pixel values to be floating point values between 0.0 and
- *maxval*.
- """
-
- x, y, pixels, info = self.asDirect()
- sourcemaxval = 2 ** info['bitdepth'] - 1
- del info['bitdepth']
- info['maxval'] = float(maxval)
- factor = float(maxval) / float(sourcemaxval)
-
- def iterfloat():
- for row in pixels:
- yield [factor * p for p in row]
- return x, y, iterfloat(), info
-
def _as_rescale(self, get, targetbitdepth):
"""Helper used by :meth:`asRGB8` and :meth:`asRGBA8`."""
