}
public void setMatching(int[] matching) {
this.matching = matching;
try {
EstimatedTransformationContainer container = TransformationEstimator.lmsEstimator(pattern,
template, matching);
AffineTransform detransform = container.affineTransform;
this.affineTransform = detransform;
deformedPattern = pattern;