tp

Results 4 comments of tp

update: added RGB24 as Uint8Array and reordered imageData from 24 bit RGB to 32 bit RGB , unfortunately the output now looks like this, any ideas how to adjust the...

Specifically: The Patientposition matrix within cornerstone-nifti-image-loader ist different from slicers Image Origin (that shouldn't happen, imho) cornerstone: ![coordinates1](https://user-images.githubusercontent.com/1944948/88455068-e9a94680-ce72-11ea-83c4-614cfc2b7a10.png) slicer: ![Screen Shot 2020-07-25 at 12 30 45](https://user-images.githubusercontent.com/1944948/88455076-eca43700-ce72-11ea-857e-37864e7270d9.png)

ok, some more digging, the matrices / images are apparently flipped in these two function calls in Volume.js: ``` this[convertToNeurologicalView](); this[convertRAStoLPS](); ``` Omitting them restores the correct imageOrientation matrix and...

even more digging, looks like all three functions call ``` this[ensureVoxelStorageInXYZ](); this[convertToNeurologicalView](); this[convertRAStoLPS](); ``` are distorting the coordinate calculations when displaying it in cornerstone / doing ijk->patientspace calculations (I presume...