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

Correct float access to lut array (#302) #303

Merged
merged 3 commits into from Sep 13, 2021

Conversation

pierreldff
Copy link
Contributor

Computation of modalityLut values with float rescale slope/intercept could lead to float values.
To access to the lut array we need to get integer values other wise we will get no values

@pierreldff
Copy link
Contributor Author

I do not have issue when I run tests
HeadlessChrome 67.0.3372 (Windows 10.0.0): Executed 136 of 136 SUCCESS (1.506 secs / 1.357 secs)

@swederik
Copy link
Member

This makes sense. I also don't have issues running the tests. I don't know why Travis is having issues, let me restart the build to see if that changes anything.

@coveralls
Copy link

Coverage Status

Coverage increased (+0.07%) to 65.491% when pulling f834307 on pierreldff:master into 803dd73 on cornerstonejs:master.

@dannyrb
Copy link
Member

dannyrb commented Mar 24, 2019

Is this related to: #302 (comment) ?

I'm unsure of how to action this item. Any guidance would be appreciated.

@pierreldff
Copy link
Contributor Author

pierreldff commented Mar 27, 2019

Ok so i add a flag to check if slope intercept cannot be cast as integer.
We pass the flag if we compute nonlinearVOILUT

@swederik swederik merged commit 2cac920 into cornerstonejs:master Sep 13, 2021
@swederik
Copy link
Member

🎉 This PR is included in version 2.4.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

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

Successfully merging this pull request may close these issues.

None yet

4 participants