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

fix getHyperslab and create a function getHyperslabNormalized #7

Open
mcvaneede opened this issue Oct 17, 2013 · 0 comments
Open

fix getHyperslab and create a function getHyperslabNormalized #7

mcvaneede opened this issue Oct 17, 2013 · 0 comments
Labels

Comments

@mcvaneede
Copy link
Member

Currently the function getHyperslab if the data of an object is not loaded yet, you could get some unexpected results if your dtype is not float or double. In that case, the function miget_hyperslab_normalized is called, and the actual range of your input data is mapped onto the range of your dtype. For example, if your input file has float values from 1.0 to 3.0, and your dtype is ubyte, the value 1.0 will be mapped to 0 and 3.0 to 255. This is probably not what you would have expected from this function. That functionality should be implemented in a function called getHyperslabNormalized, and this function should simply return values between 1 and 3

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

No branches or pull requests

1 participant