python - Patch wise feature vector comparison
问题描述
I have a image of size of 64*64. I am trying to compute HOG features for the image. I have skimage for my implementation, with the following parameters:
fd1, hog_image = hog(image, orientations=9, pixels_per_cell=(8,8),
cells_per_block =(2,2), block_norm = "L2" ,visualize= True)
I get a 36 * 1 dimensional histogram for all 8 * 8 cells with total dimensions = 1764.At the end feature vector is flattened for all histograms. Is there a way that I can find out feature vectors for each 8 * 8 cell?
I would like to compare the feature vector from each 8*8 patch in one image to patch in another image.Something like this.
How do I do that?
解决方案
推荐阅读
- c++ - 主游戏循环中的时间计算
- spring-boot - 全局注册 DynamicParameterizedType
- python - 没有这样的文件或目录:使用 pyinstaller 将文件从 .py 编译为 .exe 后出现“Temp\\_MEI79882\\currency_converter\\eurofxref-hist.zip”错误
- session - Phalcon 框架如何以及何时创建新的会话文件?
- cypress - 赛普拉斯:在赛普拉斯中分配和访问全局变量
- dom - 触发事件时获取 ID 属性(订阅)
- c++ - 是否有任何技术可以“缓存”分支选择的结果?
- react-native - 如何在 react-native-router-flux 中模拟 Actions 的 Scene 键?
- android - Redux 事件后进度条未更新
- linux - “find | awk”命令需要解释 (Linux)