AutoMovie API
    Preparing search index...

    Interface IAutoMovieRasterComparison

    What compareAutoMovieRasters found between two pictures of one size: a difference image to look at and the numbers that say how much changed and where.

    interface IAutoMovieRasterComparison {
        bounds:
            | { bottom: number; left: number; right: number; top: number }
            | null;
        changed: number;
        image: IAutoMovieRasterImage;
        maximum: number;
        ratio: number;
    }
    Index
    bounds: { bottom: number; left: number; right: number; top: number } | null

    Smallest box holding every changed pixel, in inclusive pixel coordinates from the top-left corner, or null when no pixel changed.

    Type Declaration

    • { bottom: number; left: number; right: number; top: number }
      • bottom: number

        Inclusive bottommost changed pixel row.

      • left: number

        Inclusive leftmost changed pixel column, from zero.

      • right: number

        Inclusive rightmost changed pixel column.

      • top: number

        Inclusive topmost changed pixel row, from zero.

    • null
    changed: number

    Number of pixels whose largest channel difference exceeds the tolerance.

    The newer picture in dimmed grey with every changed pixel in magenta.

    maximum: number

    Largest channel difference found anywhere, 0 to 255, tolerance not applied.

    ratio: number

    changed over the pixel count, in [0, 1].