#!/usr/bin/python

import sys

sys.path.append('../lib')
import transformations

v0 = [[0, 1031, 1031, 0], [0, 0, 1600, 1600]]
v1 = [[675, 826, 826, 677], [55, 52, 281, 277]]
#weights = [1.0, 1.0, 1.0, 1.0]
weights = [0.1, 0.01, 0.1, 0.2]
print "original"
print transformations.affine_matrix_from_points(v0, v1, shear=False)
print "weighted"
print transformations.affine_matrix_from_points_weighted(v0, v1, weights, shear=False)

Test a weighted affine solver.
Test a weighted affine solver.


Former-commit-id: b8876ed995f7c2ec029697ccd815957bc4a6cc93