NonParametricRegressor¶
- class menpo.fit.regression.base.NonParametricRegressor(regressor, features)[source]¶
Bases: Regressor
Fitter of Non-Parametric Regressor.
Parameters: regressor: function/closure :
The regressor to be used from menpo.fit.regression.regressionfunctions.py.
features: :
The features used to regress.
- fit(image, initial_parameters, gt_shape=None, **kwargs)¶
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]¶
Method that makes sure that the parameter passed to the fit method is the shape.
Parameters: shape: PointCloud :
The current shape.