NonParametricFittingResult

class menpo.fit.fittingresult.NonParametricFittingResult(image, fitter, shapes=None, costs=None, gt_shape=None, error_type='me_norm')[source]

Bases: FittingResult

plot_cost(figure_id=None, new_figure=False, **kwargs)[source]

Plots the cost evolution throughout the fitting.

plot_error(figure_id=None, new_figure=False, **kwargs)

Plots the error evolution throughout the fitting.

view(**kwargs)

View the object using the default rendering engine figure handling. For example, the default behaviour for Matplotlib is that all draw commands are applied to the same figure object.

Parameters:

kwargs : dict

Passed through to specific rendering engine.

Returns:

viewer : Renderer

The renderer instantiated.

view_final_fitting(figure_id=None, new_figure=False, **kwargs)

Displays the final fitting result.

view_ground_truth(figure_id=None, new_figure=False, **kwargs)

Displays the ground truth annotation.

view_initialization(figure_id=None, new_figure=False, **kwargs)

Displays the initialization from which the fitting started.

view_new(**kwargs)

View the object on a new figure.

Parameters:

kwargs : dict

Passed through to specific rendering engine.

Returns:

viewer : Renderer

The renderer instantiated.

view_on(figure_id, **kwargs)

View the object on a a specific figure specified by the given id.

Parameters:

figure_id : object

A unique identifier for a figure.

kwargs : dict

Passed through to specific rendering engine.

Returns:

viewer : Renderer

The renderer instantiated.

algorithm

Returns the name of the algorithm used by the Fitter.

error_type

Return the type of error.

errors

Returns a list containing the error at each fitting iteration.

final_cost[source]

Returns the value of the cost function at the final iteration.

final_error

Returns the final fitting error.

Type:float
fitted[source]

True iff the fitting procedure has been completed.

gt_shape[source]

Returns the original ground truth shape associated to the image.

initial_cost[source]

Returns the value of the cost function at the first iteration.

initial_error

Returns the initial fitting error.

Type:float