mgcrea/image-moments

View on GitHub
src/index.js

Summary

Maintainability
A
1 hr
Test Coverage

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

    There are no issues that match your filters.

    Category
    Status