Function alignMinDifference

  • Aligns two images by finding the translation that minimizes the mean difference of all channels. between them. The source image should fit entirely in the destination image.

    Parameters

    Returns { column: number; row: number; similarity: number }

    Translation that minimizes the mean difference between the images. Gives the origin of the source image relatively to the top-left corner of the destination image.