openalea.eartrack.eartrack.majors_axes_regression_line¶
-
openalea.eartrack.eartrack.
majors_axes_regression_line
(binary_img)[source]¶ Performs a major axis regression on binary image
True pixels of image are used as distributed dots :param binary_img: (numpy 2D binary uint8 array) binary image to perform regression :return: result: (numpy 3D uint8 array) color image with regression line draws on it
a: (float) slope of regression line b: (float) intercept of regression line mean_error: (float) mean error of pixels to regression line alpha: angle of regression line (in degrees)