-
-
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
Confusing documentation for denoise_bilateral #5391
Comments
Thanks for pointing this out. Indeed Are you interested in making a documentation PR to address this for |
Hi @felipegb94, Sure! Would you like to submit a pull request to update the docs? The sentence is basically missing an if statement ("if the image is not floating point, ..."). You may want to point to https://scikit-image.org/docs/dev/user_guide/data_types.html. Thanks for reporting! |
Sure I can try to submit a pull request. I guess, according to the data types docs, |
Update the description of `sigma_color` in `denoise_bilateral`. See: scikit-image#5391
Thank you for your PR!
Yes, functions taking float images as inputs assume that their range is -1 to 1. I think I can see what you mean, but I would need a real example to be sure. |
Description
In the
denoise_bilateral
documentation thesigma_color
description is a bit confusing when describing whatimg_as_float
does in this function. It says that: Note, that the image will be converted using the img_as_float function and thus the standard deviation is in respect to the range [0, 1]The above description is appropriate IF the input image has values of type
int
. So, in that case the user does need to take this transform into account when specifyingsigma_color
.However, if the input image is of type
float
already,img_as_float
does nothing. So, in that case the user should specifysigma_color
based on the actual scale of the input image.I think it might be important to clarify the second case I described so that users know how to specify
sigma_color
when their image is already of type float.Link to denoise_bilateral docs
Link to denoise_bilateral code
Way to reproduce
Version information
The text was updated successfully, but these errors were encountered: