mgcrea/image-moments

View on GitHub

Showing 1 of 1 total issue

Function imageMoments has 39 lines of code (exceeds 25 allowed). Consider refactoring.
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 = {};
Severity: Minor
Found in src/index.js - About 1 hr to fix
    Severity
    Category
    Status
    Source
    Language