def make_joining_whisker(px, py, dist, lthick, lscore, rthick, rscore):
    w = Whisker_Seg()
    tt = linspace(0, 1, round(dist))
    w.x = polyval(px, tt).astype(float32)
    w.y = polyval(py, tt).astype(float32)
    w.thick = polyval([(rthick - lthick), lthick], tt).astype(float32)
    w.scores = polyval([(rscore - lscore), lscore], tt).astype(float32)
    return w
def make_joining_whisker(px, py, dist, lthick, lscore, rthick, rscore):
    w = Whisker_Seg()
    tt = linspace(0, 1, round(dist))
    w.x = polyval(px, tt).astype(float32)
    w.y = polyval(py, tt).astype(float32)
    w.thick = polyval([(rthick - lthick), lthick], tt).astype(float32)
    w.scores = polyval([(rscore - lscore), lscore], tt).astype(float32)
    return w