Check out the Hyperspy Workshop May 13-17, 2024 Online

ransac_ellipse_tools#

Tools for ellipse fitting using RANSAC.

Functions

is_ellipse_good(ellipse_model, data, xf, yf, ...)

Check if an ellipse model is within parameters.

make_ellipse_data_points(x, y, a, b, r[, ...])

Get an ellipse position list.

ellipse_to_markers(ellipse_array[, points, ...])

Convert an ellipse array to a hyperspy.api.plot.markers.Ellipses object.

get_ellipse_model_ransac(data[, xf, yf, ...])

Pick a random number of data points to fit an ellipse to.

get_ellipse_model_ransac_single_frame(data)

Pick a random number of data points to fit an ellipse to.

determine_ellipse([signal, pos, mask, ...])

This method starts by taking some number of points which are the most intense in the signal or those points can be directly passed.