Skip to content
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

Issue in Meanshift while training on 16 bit, 1 channel tiff images? #257

Open
ahanagemini opened this issue Mar 25, 2020 · 2 comments
Open

Comments

@ahanagemini
Copy link

Meanshift assumes 3 channels and so the code needs to be re-written for 1 channel? Also, the default RGB mean values are around 0.4 for each channel. This seems to indicate that data should be in the range 0-1. However, from the code, it seems that the data is in the range of 0-255. If so, then how are the means so small?

@HaolyShiit
Copy link

HaolyShiit commented Mar 26, 2020

I think it should be: out = (in - mean * 255) / sigma, according to author's codes, if input images are at 0 ~ 255. So the final range is -(mean * 255) ~ +(255 - mean * 255), roughly at -127~+127.

@ahanagemini
Copy link
Author

ahanagemini commented Mar 26, 2020 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants