function sumPointIfInFreehand(dataHandles, point, workingSum, pixelValue) {
  if ((0, _pointInFreehand2.default)(dataHandles, point)) {
    workingSum.value += pixelValue;
    workingSum.squared += pixelValue * pixelValue;
    workingSum.count++;
  }
}
/**
* Calculates the statistics of all the points within the freehand object.
*
* @param {Object} sp - An array of the pixel data.
* @param {Object} boundingBox - Rectangular box enclosing the polygon.
* @param {Object} dataHandles - Data object associated with the tool.
* @return {Object} statisticsObj - Object containing the derived statistics.
*/
Calculates the statistics of all the points within the freehand object.
Calculates the statistics of all the points within the freehand object .
function sumPointIfInFreehand(dataHandles, point, workingSum, pixelValue) {
  if ((0, _pointInFreehand2.default)(dataHandles, point)) {
    workingSum.value += pixelValue;
    workingSum.squared += pixelValue * pixelValue;
    workingSum.count++;
  }
}
function sumPointIfInFreehand ( dataHandles , point , workingSum , pixelValue ) { if ( ( 0 , _pointInFreehand2 . default ) ( dataHandles , point ) ) { workingSum . value += pixelValue ; workingSum . squared += pixelValue * pixelValue ; workingSum . count ++ ; } }
Calculates the statistics of all the points within the freehand object.
Calculates the statistics of all the points within the freehand object .