Commit c94e270a authored by André Anjos's avatar André Anjos 💬

Use matching size for linsolver

parent 16a25dea
...@@ -361,7 +361,7 @@ class FingerCrop (Preprocessor): ...@@ -361,7 +361,7 @@ class FingerCrop (Preprocessor):
edges[1,:] = len(mask) - numpy.flipud(mask_consider).argmax(axis=0) - 1 edges[1,:] = len(mask) - numpy.flipud(mask_consider).argmax(axis=0) - 1
bl = edges.mean(axis=0) #baseline bl = edges.mean(axis=0) #baseline
x = numpy.arange(0,img_w) x = numpy.arange(0, n_edges)
A = numpy.vstack([x, numpy.ones(len(x))]).T A = numpy.vstack([x, numpy.ones(len(x))]).T
# Fit a straight line through the base line points # Fit a straight line through the base line points
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment