cornerstonejs / cornerstone

JavaScript library to display interactive medical images including but not limited to DICOM
https://docs.cornerstonejs.org/
MIT License
2.07k stars 598 forks source link

getscalardata deprecation #639

Open jjustinm4 opened 2 hours ago

jjustinm4 commented 2 hours ago

Dear mentors , is the volume.scalarData() deprecated or unavailable in latest version ? For specific volume operations this used to be extremely helpful but seems unavailable now. I tried the following

// I have a volume created , cached and loaded which is visible via "Setvolumeforviewport" console.log( volume.voxelManager.getScalarData() ) // Undefined or erroneous console.log( volume.voxelManager._getScalarData() ) // Undefined or erroneous console.log( volume.getScalarData() ) // Scalar data not available

From documentation I understood that voxelManager needs to be involved in getting scalar data ? Does the voxelMnager needs any initiation for this to work ? . In versions 1x it was available as a float array how can we get the same in 2x variants .

Also does the scalarData stores rotation related info I mean does it stores rotation related info anywhere

Thank you

No-Dream-No-Life commented 2 hours ago

这是来自QQ邮箱的假期自动回复邮件。 您好,邮件我已收到,我将在看到后第一时间给您回复。