visualMovieAnalysis2.py 文件源码

python
阅读 38 收藏 0 点赞 0 评论 0

项目:recognizeFitExercise 作者: tyiannak 项目源码 文件源码
def getHSHistograms_2D(HSVimage):
    (Width, Height) = HSVimage.shape[1], HSVimage.shape[0]    
    H, xedges, yedges = numpy.histogram2d(numpy.reshape(HSVimage[:,:,0], Width*Height), numpy.reshape(HSVimage[:,:,1], Width*Height), bins=(range(-1,180, 30), range(-1, 256, 64)))
    H = H / numpy.sum(H);
    return (H, xedges, yedges)
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号