ValueError: Images of type float must be between -1 and 1.

Juan Nunez-Iglesias jni.soma at gmail.com
Wed Feb 10 17:06:19 EST 2016


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 at 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 at googlegroups.com.
> To post to this group, send email to scikit-image at googlegroups.com.
> To view this discussion on the web, visit
> https://groups.google.com/d/msgid/scikit-image/42c9f415-7482-476e-adea-a70241c46d1b%40googlegroups.com
> <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.
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/scikit-image/attachments/20160211/6d9521f3/attachment.html>


More information about the scikit-image mailing list