This MATLAB script demonstrates how to perform feature detection, extraction, matching, and visualization using the SURF (Speeded-Up Robust Features) algorithm.
- feature_matching_surf.m:
- This MATLAB script loads two sample images (
m111.jpgandm222.jpg), converts them to grayscale, detects SURF features, extracts feature descriptors, matches the features between the two images, and visualizes the results.
- This MATLAB script loads two sample images (
- MATLAB with Image Processing Toolbox
-
Clone the repository or download the script:
- Clone this repository or download the
feature_matching_surf.mscript.
- Clone this repository or download the
-
Open MATLAB:
- Launch MATLAB and navigate to the directory containing
feature_matching_surf.m.
- Launch MATLAB and navigate to the directory containing
-
Run the Script:
- Run the script in MATLAB to see the feature detection, extraction, matching, and visualization steps.
-
Detect SURF Features:
- SURF features are detected in both images.
-
Extract Features:
- Neighborhood features are extracted around the detected SURF points.
-
Match Features:
- Features extracted from both images are matched.
-
Visualize Matched Features:
- The matched features are visualized.
feature_matching_surf.m: MATLAB script for feature matching using SURF.m111.jpg: Sample image 1.m222.jpg: Sample image 2.