getStoredPixels api - cornerstonejs/cornerstone GitHub Wiki
The getStoredPixels api call is used to access a subset of the underlying stored pixel values of the image. This is intended to support analysis of images (e.g. ROI calculation, image processing, etc).
function getStoredPixels(element, x, y, width, height);
Parameters:
- element - the DOM element to enable
- x - the left side of the extraction rectangle in pixel coordinates
- y - the top side of the extraction rectangle in pixel coordinates
- width - the width of the extraction rectangle in pixel coordinates
- height - the height of the extraction rectangle in pixel coordinates
Returns: 1D array of stored pixel values