In line 279 in fiber_segmentation_mod there is :`x, y = props.centroid` where actually the centroid is expressed as y (row) ,x (column).