-
-
Notifications
You must be signed in to change notification settings - Fork 2.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
filters.gaussian
does not work on 1D input
#5195
Comments
There is actually two different aspects.
|
Hi,
I might be wrong but it seems to be ok. Going deeper:
|
@michalkrawczyk, see this page: https://scikit-image.org/docs/dev/user_guide/data_types.html convert to float with preserve range = False renormalises based on the assumed range of the data type, as shown in the table on the top of that page. So in your case, you start with int64.
That's not exactly your number but it's about right. I'm not sure why part of the int64 range is truncated here, but that's the gist. |
@jni
Edit v2: It seems according to Data Conversion Rules (and that comment from code) that also int conversions should be normalized with |
Improved gaussian filter and convert_to_float(#5195)
The text was updated successfully, but these errors were encountered: