用法:
cucim.skimage.feature.corner_foerstner(image, sigma=1)
计算 Foerstner 角点测量响应图像。
该角点检测器使用来自自相关矩阵 A 的信息:
A = [(imx**2) (imx*imy)] = [Axx Axy] [(imx*imy) (imy**2)] [Axy Ayy]
其中 imx 和 imy 是一阶导数,使用高斯滤波器进行平均。然后将角测量定义为:
w = det(A) / trace(A) (size of error ellipse) q = 4 * det(A) / trace(A)**2 (roundness of error ellipse)
- image:ndarray
输入图像。
- sigma:浮点数,可选
用于高斯核的标准偏差,用作自相关矩阵的加权函数。
- w:ndarray
错误椭圆大小。
- q:ndarray
误差椭圆的圆度。
参数:
返回:
参考:
- 1
Förstner, W., & Gülch, E. (1987, June). A fast operator for detection and precise location of distinct points, corners and centres of circular features. In Proc. ISPRS intercommission conference on fast processing of photogrammetric data (pp. 281-305). https://cseweb.ucsd.edu/classes/sp02/cse252/foerstner/foerstner.pdf
- 2
例子:
>>> from cucim.skimage.feature import corner_foerstner, corner_peaks >>> square = cp.zeros([10, 10]) >>> square[2:8, 2:8] = 1 >>> square.astype(int) array([[0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 1, 1, 1, 1, 1, 1, 0, 0], [0, 0, 1, 1, 1, 1, 1, 1, 0, 0], [0, 0, 1, 1, 1, 1, 1, 1, 0, 0], [0, 0, 1, 1, 1, 1, 1, 1, 0, 0], [0, 0, 1, 1, 1, 1, 1, 1, 0, 0], [0, 0, 1, 1, 1, 1, 1, 1, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0]]) >>> w, q = corner_foerstner(square) >>> accuracy_thresh = 0.5 >>> roundness_thresh = 0.3 >>> foerstner = (q > roundness_thresh) * (w > accuracy_thresh) * w >>> corner_peaks(foerstner, min_distance=1) array([[2, 2], [2, 7], [7, 2], [7, 7]])
相关用法
- Python cucim.skimage.feature.corner_shi_tomasi用法及代码示例
- Python cucim.skimage.feature.corner_peaks用法及代码示例
- Python cucim.skimage.feature.corner_kitchen_rosenfeld用法及代码示例
- Python cucim.skimage.feature.corner_harris用法及代码示例
- Python cucim.skimage.feature.canny用法及代码示例
- Python cucim.skimage.feature.shape_index用法及代码示例
- Python cucim.skimage.feature.structure_tensor_eigenvalues用法及代码示例
- Python cucim.skimage.feature.peak_local_max用法及代码示例
- Python cucim.skimage.feature.match_template用法及代码示例
- Python cucim.skimage.feature.structure_tensor_eigvals用法及代码示例
- Python cucim.skimage.feature.hessian_matrix_eigvals用法及代码示例
- Python cucim.skimage.feature.hessian_matrix用法及代码示例
- Python cucim.skimage.feature.structure_tensor用法及代码示例
- Python cucim.skimage.filters.roberts_neg_diag用法及代码示例
- Python cucim.skimage.filters.gabor用法及代码示例
- Python cucim.skimage.filters.roberts_pos_diag用法及代码示例
- Python cucim.skimage.filters.roberts用法及代码示例
- Python cucim.skimage.filters.gabor_kernel用法及代码示例
- Python cucim.skimage.filters.sobel_v用法及代码示例
- Python cucim.skimage.filters.sobel_h用法及代码示例
注:本文由纯净天空筛选整理自rapids.ai大神的英文原创作品 cucim.skimage.feature.corner_foerstner。非经特殊声明,原始代码版权归原作者所有,本译文未经允许或授权,请勿转载或复制。