{ } Raw JSON

bundles / skimage 0.26.1rc0.dev0+git20260530.b607368ff / skimage / feature / corner / corner_fast

function

skimage.feature.corner:corner_fast

source: /dev/scikit-image/src/skimage/feature/corner.py :879

Signature

def   corner_fast ( image n = 12 threshold = 0.15 )

Summary

Extract FAST corners for a given image.

Parameters

image : ndarray of shape (M, N)

Input image.

n : int, optional

Minimum number of consecutive pixels out of 16 pixels on the circle that should all be either brighter or darker w.r.t testpixel. A point c on the circle is darker w.r.t test pixel p if Ic < Ip - threshold and brighter if Ic > Ip + threshold. Also stands for the n in FAST-n corner detector.

threshold : float, optional

Threshold used in deciding whether the pixels on the circle are brighter, darker or similar w.r.t. the test pixel. Decrease the threshold when more corners are desired and vice-versa.

Returns

response : ndarray

FAST corner response image.

Examples

from skimage.feature import corner_fast, corner_peaks
square = np.zeros((12, 12))
square[3:9, 3:9] = 1
square.astype(int)
corner_peaks(corner_fast(square, 9), min_distance=1)

Aliases

  • skimage.feature.corner_fast

Referenced by