I have a NumPy array 7*7 that represents a cell of an image and I am trying to fit black pixels of this cell to a straight-line using regression (from curves to lines)
th