备注
单击 here 下载完整的示例代码或通过活页夹在浏览器中运行此示例
密集菊花功能描述¶
DAISY局部图像描述符基于类似于SIFT描述符的梯度方向直方图。它以一种允许快速密集提取的方式制定,这对于例如特征包图像表示是有用的。
在该示例中,出于说明目的,大规模地提取有限数量的菊花描述符。

from skimage.feature import daisy
from skimage import data
import matplotlib.pyplot as plt
img = data.camera()
descs, descs_img = daisy(img, step=180, radius=58, rings=2, histograms=6,
orientations=8, visualize=True)
fig, ax = plt.subplots()
ax.axis('off')
ax.imshow(descs_img)
descs_num = descs.shape[0] * descs.shape[1]
ax.set_title('%i DAISY descriptors extracted:' % descs_num)
plt.show()
脚本的总运行时间: (0分1.344秒)