Skip to content

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

Merged
swederik merged 3 commits intocornerstonejs:masterfrom
pierreldff:master
Sep 13, 2021
Merged

Correct float access to lut array (#302)#303
swederik merged 3 commits intocornerstonejs:masterfrom
pierreldff:master

Conversation

@pierreldff
Copy link
Copy Markdown
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
Copy Markdown
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)

@dannyrb dannyrb requested a review from swederik September 6, 2018 16:05
@swederik
Copy link
Copy Markdown
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
Copy Markdown

Coverage Status

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

@dannyrb
Copy link
Copy Markdown
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
Copy Markdown
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
Copy Markdown
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.

4 participants