tp
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:  slicer: 
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...