Nodes/comfyui_cv/cv2.goodFeaturesToTrack (2/2)
ComfyUI Node

cv2.goodFeaturesToTrack (2/2)

Raw wrapper of cv2.goodFeaturesToTrack(image, maxCorners, qualityLevel, minDistance, mask, blockSize, gradientSize, useHarrisDetector?, k?). Parameters marked '?' are optional; blank means OpenCV default. See the OpenCV documentation for details.

By bmad4ever·Created 3 months ago·Updated 2 days ago· 0
cv2.goodFeaturesToTrack (2/2)
  • image
  • mask
  • nparray
maxCorners0
qualityLevel0.0000
minDistance0.0000
blockSize0
gradientSize0
useHarrisDetectorfalse
k0.0400
Categoryimage/CV/low-level/cv2 G

Inputs (9)

NameTypeDefaultDescription
imageNPARRAY,IMAGE,MASKInput 8-bit or floating-point 32-bit, single-channel image. Accepts a ComfyUI IMAGE/MASK directly (frame 0 of a batch) or an NPARRAY. Arithmetic ops (add, multiply, etc.) process the full IMAGE batch when both inputs have the same batch size.
maxCornersINT0-2147483648–2147483647Maximum number of corners to return. If there are more corners than are found, the strongest of them is returned. `maxCorners <= 0` implies that no limit on the maximum is set and all detected corners are returned.
qualityLevelFLOAT0.0000-1e+38–1e+38Parameter characterizing the minimal accepted quality of image corners. The parameter value is multiplied by the best corner quality measure, which is the minimal eigenvalue (see #cornerMinEigenVal ) or the Harris function response (see #cornerHarris ). The corners with the quality measure less than the product are rejected. For example, if the best corner has the quality measure = 1500, and the qualityLevel=0.01 , then all the corners with the quality measure less than 15 are rejected.
minDistanceFLOAT0.0000-1e+38–1e+38Minimum possible Euclidean distance between the returned corners.
maskNPARRAY,IMAGE,MASKOptional region of interest. If the image is not empty (it needs to have the type CV_8UC1 and the same size as image ), it specifies the region in which the corners are detected. Accepts a ComfyUI IMAGE/MASK directly (frame 0 of a batch) or an NPARRAY. Arithmetic ops (add, multiply, etc.) process the full IMAGE batch when both inputs have the same batch size.
blockSizeINT0-2147483648–2147483647Size of an average block for computing a derivative covariation matrix over each pixel neighborhood. See cornerEigenValsAndVecs .
gradientSizeINT0-2147483648–2147483647 - - -
useHarrisDetectoroptBOOLEANfalseParameter indicating whether to use a Harris detector (see #cornerHarris) or #cornerMinEigenVal. Preset to the OpenCV default (False).
koptFLOAT0.0400-1e+38–1e+38Free parameter of the Harris detector. Preset to the OpenCV default (0.04).

Outputs (1)

NameTypeDescription
nparrayNPARRAY