ellipse_to_markers#
- pyxem.utils.ransac_ellipse_tools.ellipse_to_markers(ellipse_array, points=None, inlier=None)[source]#
Convert an ellipse array to a
hyperspy.api.plot.markers.Ellipses
object. If points and inlier are provided, then the points are also plotted. The inlier points are plotted in green and the outlier points are plotted in red.- Parameters:
ellipse_array (np.ndarray) – The array of ellipses parameters in the form [x_c, y_c, semi_len0, semi_len1, rotation]
points (np.ndarray) – The array of points to be plotted. If None, then no points are plotted.
inlier (np.ndarray) – The bool array of inlier points. If None, then no points are plotted.
Examples using ellipse_to_markers
#
Determining Elliptic Distortion
Determining Elliptic Distortion