extensions/xnat/src/utils/IO/classes/NIFTIReader.js
/**
   * _generateMetadata - generates and set the segment metadata in cornerstoneTools.
   *
   * @returns {null}
   */
generates and set the segment metadata in cornerstoneTools.
@returns {null}
generates and set the segment metadata in cornerstoneTools . @returns { null }
_generateMetadata() {
    for (let i = 0; i < this._segmentationCount; i++) {
      const metadata = {
        RecommendedDisplayCIELabValue: [255, 0, 0],
        SegmentedPropertyCategoryCodeSequence: {
          CodeValue: 'T-D0050',
          CodingSchemeDesignator: 'SRT',
          CodeMeaning: 'Tissue',
        },
        SegmentLabel: `${this._getTheoNames(i)}`,
        SegmentAlgorithmType: 'MANUAL',
        SegmentedPropertyTypeCodeSequence: {
          CodeValue: 'T-D016E',
          CodingSchemeDesignator: 'SRT',
          CodeMeaning: 'Bone',
        },
      };
      this._setSegMetadata(i, metadata);
    }
  }
_generateMetadata ( ) { for ( let i = 0 ; i < this . _segmentationCount ; i ++ ) { const metadata = { RecommendedDisplayCIELabValue : [ 255 , 0 , 0 ] , SegmentedPropertyCategoryCodeSequence : { CodeValue : 'T-D0050' , CodingSchemeDesignator : 'SRT' , CodeMeaning : 'Tissue' , } , SegmentLabel : ` ${ this . _getTheoNames ( i ) } ` , SegmentAlgorithmType : 'MANUAL' , SegmentedPropertyTypeCodeSequence : { CodeValue : 'T-D016E' , CodingSchemeDesignator : 'SRT' , CodeMeaning : 'Bone' , } , } ; this . _setSegMetadata ( i , metadata ) ; } }
_generateMetadata - generates and set the segment metadata in cornerstoneTools.
_generateMetadata - generates and set the segment metadata in cornerstoneTools .
// TEMP -> Generate appropriate metadata since NIFTI has none ¯\_(ツ)_/¯.