cornerstonejs / cornerstone-nifti-image-loader

Nifti image loader module for cornerstone/ohif viewer
MIT License
56 stars 27 forks source link

Update for serving the image plane meta data and original header information consistently on on each request #58

Closed Trenser-SandeepNayathil closed 1 year ago

Trenser-SandeepNayathil commented 1 year ago

First change is related to the 'orientationMatrix' initialization. Currently the header affine matrix reference is directly use as orientation matrix and the same reference getting updated as part of conversion to the dicom's image orientation to match with cornerstone expectation, so a new copy used to initialize the orientation matrix while parsing nifti file.

Next change is related to the caching of the created volume. Currently the created volume is caching with the request file path as the key but the same is fetching using the file path and time point combination key. So, on each request the volume created again and the 'orientationMatrix' updated each time. This will result in different image plane meta data(image position, orientation) on each request.

sedghi commented 1 year ago

:tada: This PR is included in version 1.0.9 :tada:

The release is available on:

Your semantic-release bot :package::rocket: