image-js
Version:
Image processing and manipulation in JavaScript
13 lines • 368 B
JavaScript
/**
* Convert matrix to points.
* @param matrix - Matrix to process.
* @returns Array of points.
*/
export function getPointsFromMatrix(matrix) {
const result = [];
for (let i = 0; i < matrix.columns; i++) {
result.push({ row: matrix.get(1, i), column: matrix.get(0, i) });
}
return result;
}
//# sourceMappingURL=getPointsFromMatrix.js.map