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)
visualMovieAnalysis2.py 文件源码
python
阅读 38
收藏 0
点赞 0
评论 0
评论列表
文章目录