rgbhistogram.py 文件源码

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

项目:Image-search 作者: rahulremanan 项目源码 文件源码
def describe(self, image):
        # Compute a 3D histogram in the RGB colorspace and normalize.
        hist = cv2.calcHist([image], [0, 1, 2],
            None, self.bins, [0, 256, 0, 256, 0, 256])
        hist = cv2.normalize(hist, hist)

        # Return the 3D histogram output as a flattened array.
        return hist.flatten()
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号