Apply a transformation, given a pre-estimated transformation parameters
[cost, output] = obj.applyTransformation(input)