Fitter

class menpo.fit.base.Fitter[source]

Bases: object

Interface that all Fitter objects must implement.

fit(image, initial_parameters, gt_shape=None, **kwargs)[source]

Fits the fitter object to an image.

Parameters:

image: :class:`menpo.image.masked.MaskedImage` :

The image to be fitted.

initial_parameters: list :

The initial parameters of the model.

gt_shape: :class:`menpo.shape.PointCloud`, optional :

The original ground truth shape associated to the image.

Default: None

Returns:

fitting_result: `menpo.fit.fittingresult` :

The fitting result.

get_parameters(shape)[source]

Abstract method that gets the parameters.

algorithm[source]

Returns the name of the fitter object.