src/util/segmentation/fillShape.js
/**
 * Fill all pixels labeled with the activeSegmentIndex,
 * outside the region defined by the shape.
 * @param  {Object} evt The Cornerstone event.
 * @param {Object}  operationData An object containing the `pixelData` to
 *                          modify, the `segmentIndex` and the `points` array.
 * @param {Object} pointInShape - A function that checks if a point, x,y is within a shape.
 * @param {number[]} topLeft The top left of the bounding box.
 * @param {number[]} bottomRight The bottom right of the bounding box.
 * @returns {null}
 */
Fill all pixels labeled with the activeSegmentIndex,
outside the region defined by the shape.
@param  {Object} evt The Cornerstone event.
Fill all pixels labeled with the activeSegmentIndex outside the region defined by the shape . @param { Object } evt The Cornerstone event .
function fillOutsideShape(
  evt,
  operationData,
  pointInShape,
  topLeft,
  bottomRight
) {
  fillShape(
    evt,
    operationData,
    point => !pointInShape(point),
    topLeft,
    bottomRight,
    'outside'
  );
}
function fillOutsideShape ( evt , operationData , pointInShape , topLeft , bottomRight ) { fillShape ( evt , operationData , point => ! pointInShape ( point ) , topLeft , bottomRight , 'outside' ) ; }
Fill all pixels labeled with the activeSegmentIndex,
 outside the region defined by the shape.
Fill all pixels labeled with the activeSegmentIndex outside the region defined by the shape .