image input

vicky Liau vickyting0910 at hotmail.com
Thu Feb 6 23:04:31 EST 2014


Hi Juan, 

The min of the image is -186.11397 and the max is 30790.521. That is why I 
got the error. 
Thanks for the reply and pointing out this page. I have more understandings 
on image data types for scikit-image. 

Best Regards,
Vicky

On Thursday, February 6, 2014 7:12:36 PM UTC-7, Juan Nunez-Iglesias wrote:
>
> Hi Vicky,
>
> What's the min and max of your "myimagearray"? As the error message says, 
> float images should only contain values between -1 and 1. ie, 
> myimagearray.max() should be less than 1, and myimagearray.min() should be 
> greater than -1.
>
> Here's the relevant part of the documentation describing data types:
> http://scikit-image.org/docs/0.9.x/user_guide/data_types.html
>  
> Hope that helps,
>
> Juan.
>
>
>
> On Fri, Feb 7, 2014 at 9:20 AM, vicky Liau <vickyt... at hotmail.com<javascript:>
> > wrote:
>
>> Hi, 
>> I got an error message: Images of type float must be between -1 and 1, 
>> when I call: edge_sobel = sobel (myimagearray).
>> My image dtype is float 32. 
>> I am not sure whether I am missing something. Should I convert my image 
>> into 8 bit integrate?
>> Thanks!
>> Vicky
>>  
>> -- 
>> 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... at googlegroups.com <javascript:>.
>> For more options, visit https://groups.google.com/groups/opt_out.
>>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/scikit-image/attachments/20140206/b6528983/attachment.html>


More information about the scikit-image mailing list