Re: ValueError: Images of type float must be between -1 and 1.
Ok thanks, exposure.rescale_intensity(data, in_range=(-1, 1)) seems to do the trick. Was -10,10 a typo? Is there any concern for loss of information when doing a rescale?
Um, yeah, I think you're probably clipping your data by doing `in_range=(-1, 1)`. That means that the function will consider any values under -1 as -1 and any values above 1 as 1. Probably not what you want! The input range should cover the entire range of possible values in your data. On Thu, Feb 11, 2016 at 6:15 AM, Christopher <spagodo@gmail.com> wrote:
Ok thanks, exposure.rescale_intensity(data, in_range=(-1, 1)) seems to do the trick. Was -10,10 a typo? Is there any concern for loss of information when doing a rescale?
-- You received this message because you are subscribed to the Google Groups "scikit-image" group. To unsubscribe from this group and stop receiving emails from it, send an email to scikit-image+unsubscribe@googlegroups.com. To post to this group, send email to scikit-image@googlegroups.com. To view this discussion on the web, visit https://groups.google.com/d/msgid/scikit-image/42c9f415-7482-476e-adea-a7024... <https://groups.google.com/d/msgid/scikit-image/42c9f415-7482-476e-adea-a70241c46d1b%40googlegroups.com?utm_medium=email&utm_source=footer> .
For more options, visit https://groups.google.com/d/optout.
participants (2)
-
Christopher
-
Juan Nunez-Iglesias