Skip to content

Commit

Permalink
Added CSWIL flag to not force floatToInt conversion
Browse files Browse the repository at this point in the history
  • Loading branch information
sedghi committed Jun 10, 2021
1 parent 72e885f commit 27bfea7
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion packages/demo/src/helpers/initCornerstone.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,12 @@ cornerstone.metaData.addProvider(

cornerstoneWADOImageLoader.external.cornerstone = cornerstone
cornerstoneWADOImageLoader.external.dicomParser = dicomParser
cornerstoneWADOImageLoader.configure({ useWebWorkers: true })
cornerstoneWADOImageLoader.configure({
useWebWorkers: true,
decodeConfig: {
convertFloatPixelDataToInt: false
},
})

var config = {
maxWebWorkers: navigator.hardwareConcurrency || 1,
Expand Down

0 comments on commit 27bfea7

Please sign in to comment.