im2stereo

by Tim C. Lueth, SG-Lib Toolbox: SolidGeometry 5.6 - Visualization
Introduced first in SolidGeometry 2.8, Creation date: 2015-11-25, Last change: 2025-09-14

returns corresponding points within 2 images taken from different view points

Description

This is just the implementation of the matlab example "Find Corresponding Interest Points Between Pair of Images" that easy can be used with an iPhone as ipcam.

See Also:

Example Illustration

 missing image of im2stereo (I1,I2)

Syntax

im2stereo(I1,I2)

Input Parameter

I1: RGB image 1
I2: RGB image 1

Examples

url='http://192.168.178.67:8020/image.jpg'; I=imread(url); close all; imshow(I); I1=I;
url='http://192.168.178.67:8020/image.jpg'; I=imread(url); close all; imshow(I); I2=I;
im2stereo(I1,I2)




Copyright 2015-2025 Tim C. Lueth. All rights reserved. The code is the property of Tim C. Lueth and may not be redistributed or modified without explicit written permission. This software may be used free of charge for academic research and teaching purposes only. Commercial use, redistribution, modification, or reverse engineering is strictly prohibited. Access to source code is restricted and granted only under specific agreements. For licensing inquiries or commercial use, please contact: Tim C. Lueth

Algorithm (Workflow)

This function, im2stereo, is designed to find corresponding points between two images taken from different viewpoints. It is based on a MATLAB example and is part of the SolidGeometry library.

Input Parameters

Algorithm Steps

  1. Convert both input images, I1 and I2, to grayscale using rgb2gray. This is necessary because the feature detection functions work on single-channel images.
  2. Detect Harris features in both grayscale images using detectHarrisFeatures. This function identifies interest points in the images.
  3. Extract features from the detected points in both images using extractFeatures. This function computes feature descriptors for the interest points.
  4. Match the features between the two images using matchFeatures. This function finds correspondences between the feature descriptors of the two images.
  5. Retrieve the matched points from both images using the indices from indexPairs. The matched points are stored in matchedPoints1 and matchedPoints2.
  6. Display the matched features using showMatchedFeatures. This function visualizes the correspondences between the two images.

The function does not return any values but displays a figure showing the matched features between the two images.

Algorithm explaination created using ChatGPT on 2025-08-19 01:37. (Please note: No guarantee for the correctness of this explanation)

Last html export of this page out of FM database by TL: 2025-09-21