def generateFeatureVector(stroke):
    finalVector = {}
    finalVector['len'] = GeomUtils.strokeLength(stroke)
    sNorm = GeomUtils.strokeNormalizeSpacing( stroke, max(finalVector['len'] / 4.0, 1) )
    finalVector['orientations'] = GeomUtils.pointListOrientationHistogram(sNorm.Points)
    return finalVector