bundles / skimage 0.26.1rc0.dev0+git20260530.b607368ff / skimage / feature / corner / corner_subpix
function
skimage.feature.corner:corner_subpix
source: /dev/scikit-image/src/skimage/feature/corner.py :944
Signature
def corner_subpix ( image , corners , window_size = 11 , alpha = 0.99 ) Summary
Determine subpixel position of corners.
Extended Summary
A statistical test decides whether the corner is defined as the intersection of two edges or a single peak. Depending on the classification result, the subpixel corner location is determined based on the local covariance of the grey-values. If the significance level for either statistical test is not sufficient, the corner cannot be classified, and the output subpixel position is set to NaN.
Parameters
image: ndarray of shape (M, N)Input image.
corners: (K, 2) ndarrayCorner coordinates
(row, col).window_size: int, optionalSearch window size for subpixel estimation.
alpha: float, optionalSignificance level for corner classification.
Returns
positions: (K, 2) ndarraySubpixel corner positions. NaN for "not classified" corners.
Examples
from skimage.feature import corner_harris, corner_peaks, corner_subpix img = np.zeros((10, 10)) img[:5, :5] = 1 img[5:, 5:] = 1 img.astype(int) coords = corner_peaks(corner_harris(img), min_distance=2) coords_subpix = corner_subpix(img, coords, window_size=7) coords_subpix✓
Aliases
-
skimage.feature.corner_subpix