Showing 1 of 1 total issue
Function imageMoments
has 39 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
export default function imageMoments(image) {
// Expects a greyscale image matrix [y][x]
// @desc https://en.wikipedia.org/wiki/Image_moment
const [y, x] = mgrid(image.length, image[0].length);
const moments = {};