Harris Corner Filter
This function block detects corner points in images and visualizes them. It is useful for finding feature points for inspection, alignment checks, and shape analysis.
π₯ Inputs
Image AnyInput image. Accepts grayscale or color images.
π€ Outputs
Image AnyAnnotated image with detected corners marked.Corner SizeNumber of detected corners (numeric).Corner PositionsList of corner coordinates (multiple points).
πΉοΈ Controls
Pixel ThresholdSlider to set the minimum corner response needed to consider a pixel as a corner. Higher values reduce detections.Block SizeSlider controlling the local neighborhood used when evaluating corner strength. Larger values look at wider neighborhoods.Aperture SizeSlider that adjusts the sampling aperture used for derivative estimation. Useful to tune detection for small or large features.Harris Free ParameterSlider to fine-tune the sensitivity of the corner response calculation (expressed as a scaled slider value).
π¨ Features
Visual output with detected corners overlaid for quick verification.
Returns both the count and exact positions of detected corners for downstream processing.
Works with both color and grayscale images; color inputs are handled automatically.
Adjustable parameters let you trade off sensitivity vs. robustness to noise.
βοΈ How it runs
When active, the block inspects the supplied image, evaluates local corner strength across the image, and marks locations that exceed the chosen threshold. The annotated image, the number of detected corners, and their coordinates are provided as outputs so you can visualize results and feed coordinates into other blocks.
π Usage
Feed an image into
Image Any.Adjust
Pixel Thresholdto control how many points are reported. Start with a mid value and move up to reduce detections or down to increase them.Tune
Block SizeandAperture Sizeto match the expected feature scale in your image (small features β smaller values; large features β larger values).Use
Harris Free Parameterfor fine sensitivity adjustments.Use the annotated
Image Anyoutput to confirm detections visually.
π‘ Tips and Tricks
Preprocessing: Clean up noise before detecting corners by using
BlurorDenoisingto reduce false positives.Binary conversion: If your features are high-contrast, try
Image Thresholdfirst to simplify the image.Focus area: Use
Image ROI SelectorGet ROIto analyze only a specific region and avoid irrelevant corners.Post-filtering: Use
Find ContourorApproximate Contourto group or simplify detected points into shapes, or useRectangles in Rectangleto filter corners inside/outside a region.Visualization: Preview and inspect results with
Show Image. For overlaying markers elsewhere, useDraw PointorDraw Rectanglewith theCorner Positionsoutput.
(hint: combining this block with Blur, Image Threshold, Image ROI Select, Find Contour, and Show Image often gives fast, reliable workflows for inspection and measurement tasks.)
π οΈ Troubleshooting
No corners detected
Lower
Pixel Thresholdor reduceBlock Size.Ensure the input has sufficient contrast; consider
Image ThresholdorContrast Optimization.
Too many false corners
Increase
Pixel Thresholdor increaseBlock Size.Smooth image with
BlurorDenoisingbefore detection.
Detections clustered or noisy
Use
Find Contour/Approximate Contourto consolidate nearby points into a meaningful shape or to filter by area.
If results look unexpected, preview the annotated Image Any output with Show Image to guide parameter tuning.
Last updated