difference

menpo.fit.regression.parametricfeatures.difference(appearance_model, warped_image)[source]

Returns the difference between the warped image and the image constructed by projecting the warped image onto the appearance model and rebuilding it from the weights found.

Parameters:

appearance_model: :class:`menpo.model.pca` :

The appearance model based on which the parametric features will be computed.

warped_image: :class:`menpo.image.masked` :

The warped image.