extensions/xnat/src/utils/IO/classes/RoiExtractor.js
/**
   * _getFrameNumber - Gets the frame number of an image from its imageId.
   *
   * @param  {string} imageId The imageId of the instance.
   * @returns {string} The frame number.
   */
Gets the frame number of an image from its imageId.
@param  {string} imageId The imageId of the instance.
@returns {string} The frame number.
Gets the frame number of an image from its imageId . @param { string } imageId The imageId of the instance . @returns { string } The frame number .
_getFrameNumber(imageId) {
    if (imageId.includes('frame=')) {
      const frameArray = imageId.split('frame=');
      return String(Number(frameArray[1]) + 1);
    }
    return '1';
  }
_getFrameNumber ( imageId ) { if ( imageId . includes ( 'frame=' ) ) { const frameArray = imageId . split ( 'frame=' ) ; return String ( Number ( frameArray [ 1 ] ) + 1 ) ; } return '1' ; }
_getFrameNumber - Gets the frame number of an image from its imageId.
_getFrameNumber - Gets the frame number of an image from its imageId .