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.
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)
| Name | Type | Default | Description |
|---|---|---|---|
| image | NPARRAY,IMAGE,MASK | Input 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. | |
| maxCorners | INT | 0-2147483648–2147483647 | Maximum 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. |
| qualityLevel | FLOAT | 0.0000-1e+38–1e+38 | Parameter 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. |
| minDistance | FLOAT | 0.0000-1e+38–1e+38 | Minimum possible Euclidean distance between the returned corners. |
| mask | NPARRAY,IMAGE,MASK | Optional 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. | |
| blockSize | INT | 0-2147483648–2147483647 | Size of an average block for computing a derivative covariation matrix over each pixel neighborhood. See cornerEigenValsAndVecs . |
| gradientSize | INT | 0-2147483648–2147483647 | - - - |
| useHarrisDetectoropt | BOOLEAN | false | Parameter indicating whether to use a Harris detector (see #cornerHarris) or #cornerMinEigenVal. Preset to the OpenCV default (False). |
| kopt | FLOAT | 0.0400-1e+38–1e+38 | Free parameter of the Harris detector. Preset to the OpenCV default (0.04). |
Outputs (1)
| Name | Type | Description |
|---|---|---|
| nparray | NPARRAY | — |