extensions/xnat/src/utils/IO/classes/MaskImporter.js
/**
   * _getImageIds - Returns the imageIds for the stack.
   *
   * @param  {type} SeriesInstanceUID description
   * @returns {type}                   description
   */
Returns the imageIds for the stack.
@param  {type} SeriesInstanceUID description
@returns {type}                   description
Returns the imageIds for the stack . @param { type } SeriesInstanceUID description @returns { type } description
_getImageIds(SeriesInstanceUID) {
    const imageIds = [];
    const studies = studyMetadataManager.all();
    for (let i = 0; i < studies.length; i++) {
      const study = studies[i];
      const displaySets = study.getDisplaySets();
      for (let j = 0; j < displaySets.length; j++) {
        const displaySet = displaySets[j];
        if (displaySet.SeriesInstanceUID === SeriesInstanceUID) {
          const images = displaySet.images;
          for (let k = 0; k < images.length; k++) {
            imageIds.push(images[k].getImageId());
          }
        }
      }
    }
    return imageIds;
  }
_getImageIds ( SeriesInstanceUID ) { const imageIds = [ ] ; const studies = studyMetadataManager . all ( ) ; for ( let i = 0 ; i < studies . length ; i ++ ) { const study = studies [ i ] ; const displaySets = study . getDisplaySets ( ) ; for ( let j = 0 ; j < displaySets . length ; j ++ ) { const displaySet = displaySets [ j ] ; if ( displaySet . SeriesInstanceUID === SeriesInstanceUID ) { const images = displaySet . images ; for ( let k = 0 ; k < images . length ; k ++ ) { imageIds . push ( images [ k ] . getImageId ( ) ) ; } } } } return imageIds ; }
_getImageIds - Returns the imageIds for the stack.
_getImageIds - Returns the imageIds for the stack .
// Get the imageId of each sopInstance in the series