Match Anything (ELOFTR)
This function block performs keypoint matching between two images to find corresponding points and visualize matches. Use it when you need to compare two views of the same scene, verify alignment, or track correspondences between image pairs.
π₯ Inputs (sockets)
Image A The first image to match (can be color or grayscale).
Image B The second image to match (can be color or grayscale).
π€ Outputs (sockets)
Visualization Annotated image that shows the two inputs side-by-side with matched keypoints and optional connecting lines.
Keypoints A List of matched keypoints in Image A (coordinates).
Keypoints B List of matched keypoints in Image B (coordinates).
Scores Matching confidence scores for each matched pair.
πΉοΈ Controls
Show Matches Toggle that enables or disables drawing lines between matched keypoints on the visualization.
Threshold Slider to set the minimum matching confidence (higher values keep only stronger matches).
π― Features
Matches keypoints between two images and returns matched point coordinates and confidence scores.
Optional visualization that places the two images side-by-side and marks matched points (and lines if
Show Matchesis enabled).Works with color or grayscale inputs.
Adjustable confidence threshold to filter weaker matches.
βοΈ Running mechanism
When the block runs it accepts two image inputs and computes corresponding keypoints between them. The block filters matches by the configured Threshold and, if requested, prepares a visualization image that shows the matched keypoints and (optionally) connecting lines. The matched coordinates and scores are provided through the corresponding outputs.
π Usage instructions
Provide two related images to
Image AandImage B(for example, two views of the same scene).Adjust
Thresholdto control how strict matching should be.Toggle
Show Matchesto turn on/off lines between matched points in the visualization.Use the
Visualizationoutput to inspect matches and theKeypoints A,Keypoints BandScoresoutputs for downstream processing.
π‘ Tips and Tricks
If input images have very different sizes, normalize them first using
Image Resizeto improve matching stability.To focus matching on a region of interest, crop images with
Image ROIorImage ROI Selectbefore feeding them into this block.Visualize results quickly by connecting the
Visualizationoutput toShow Image.Combine with
Feature Detectorwhen you want to compare classical feature detections with model-based keypoint matches.If you later need to draw detection boxes or overlays based on matches, use
Draw DetectionsorDraw Pointwith the keypoint coordinates.
π οΈ Troubleshooting
No matches or very few matches: lower the
Thresholdslightly, ensure the input images contain overlapping content, or try resizing/preprocessing.Many low-confidence matches: increase the
Thresholdto filter out weak correspondences.Visualization not appearing: ensure the
Visualizationoutput is connected to a viewer block likeShow Image.Images with little texture or repetitive patterns may produce ambiguous matchesβtry focusing on a more distinctive ROI or improving image quality with
Contrast Optimization.
Last updated
Was this helpful?