1. A method for image alignment, comprising: obtaining a positive class of input by warping image data according to ground truth shape parameters; obtaining a negative class of input by warping the image data according to perturbed shape parameters; and training an appearance model based on the positive and negative classes of input.