extensions/xnat/src/utils/IO/classes/NIFTIReader.js
/**
   * _extractSegmentCount - gets the segment count from the voxel data.
   *
   * @param  {type} niftiLabelMap The extracted label map data.
   * @returns {number} The segmentat count.
   */
gets the segment count from the voxel data.
@param  {type} niftiLabelMap The extracted label map data.
@returns {number} The segmentat count.
gets the segment count from the voxel data . @param { type } niftiLabelMap The extracted label map data . @returns { number } The segmentat count .
_extractSegmentCount(niftiLabelMap) {
    let len = niftiLabelMap.length;
    let max = -Infinity;
    while (len--) {
      if (niftiLabelMap[len] > max) {
        max = niftiLabelMap[len];
      }
    }
    return max;
  }
_extractSegmentCount ( niftiLabelMap ) { let len = niftiLabelMap . length ; let max = - Infinity ; while ( len -- ) { if ( niftiLabelMap [ len ] > max ) { max = niftiLabelMap [ len ] ; } } return max ; }
_extractSegmentCount - gets the segment count from the voxel data.
_extractSegmentCount - gets the segment count from the voxel data .