test_alignment_quality

kgpy.img.coalignment.image_coalignment.test_alignment_quality(transform, im1, im2, transformation_object)

Apply a chosen transform to Image 1 and cross-correlate with Image 2 to check coalignment Designed as a merit function for scipy.optimize routines

If origin isn’t specified it is assumed to be (0,0). If moving_origin is set to True, origin = transform[-2:] so that it can be controlled by scipy.optimize routines.

Return type:

float

Parameters: