dcmjs-org / dcmjs

Javascript implementation of DICOM manipulation
https://dcmjs.netlify.com/
MIT License
293 stars 112 forks source link

Segmentation metadata inconsistent #192

Open vsaase opened 3 years ago

vsaase commented 3 years ago

Hi, I noticed that in OHIF viewer in the labelmaps3d object coming from dcmjs, segmentation metadata is stored in the array labelmap3d.metadata.data However, dcmjs seems in other places like Segmentation_4x.fillSegmentation to expect labelmap3d.metadata to be this array. Maybe because Segmentation_4x.getSegmentMetadata returns

{
        seriesInstanceUid,
        data
    }

?