image-js
Version:
Image processing and manipulation in JavaScript
12 lines • 440 B
JavaScript
/**
* Return an array with the coordinates of the pixels that are on the border of the ROI.
* The reference is the top-left corner of the ROI.
* @param roi - ROI to process.
* @param options - Get border points options.
* @returns The array of border pixels.
*/
export function getBorderPoints(roi, options = {}) {
const mask = roi.getMask();
return mask.getBorderPoints(options);
}
//# sourceMappingURL=getBorderPoints.js.map