src/store/modules/segmentationModule/getLabelmapStats.js
/**
 * Returns the ditance between two imagePostionPatient coordinates.
 *
 * @param {number[]} ipp1 The first image position patient array.
 * @param {number[]} ipp2 The second image position patient array.
 */
Returns the ditance between two imagePostionPatient coordinates.
@param {number[]} ipp1 The first image position patient array.
@param {number[]} ipp2 The second image position patient array.
Returns the ditance between two imagePostionPatient coordinates . @param { number [] } ipp1 The first image position patient array . @param { number [] } ipp2 The second image position patient array .
function distanceBetweenSlices(ipp1, ipp2) {
  return Math.sqrt(
    Math.pow(ipp1[0] - ipp2[0], 2) +
      Math.pow(ipp1[1] - ipp2[1], 2) +
      Math.pow(ipp1[2] - ipp2[2], 2)
  );
}
function distanceBetweenSlices ( ipp1 , ipp2 ) { return Math . sqrt ( Math . pow ( ipp1 [ 0 ] - ipp2 [ 0 ] , 2 ) + Math . pow ( ipp1 [ 1 ] - ipp2 [ 1 ] , 2 ) + Math . pow ( ipp1 [ 2 ] - ipp2 [ 2 ] , 2 ) ) ; }
Returns the ditance between two imagePostionPatient coordinates.
Returns the ditance between two imagePostionPatient coordinates .