pixel-utils
Version:
Utility Functions for Pixels
15 lines (14 loc) • 337 B
JavaScript
;
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.default = select_brc;
function select_brc(data, depth, height, width, r, c) {
const pixel = [];
const size = height * width;
const i = r * width + c;
for (let b = 0; b < depth; b++) {
pixel.push(data[b * size + i]);
}
return pixel;
}