Is it possible to use Euclidean Transform with estimateGe​ometricTra​nsform function

1 回表示 (過去 30 日間)
el
el 2020 年 8 月 28 日
回答済み: Pratyush Roy 2020 年 9 月 1 日
I have two images and I want to stitch them, but I want to use only Euclidean Transform.
This is my code:
% 1. Find SURF features:
points1 = detectSURFFeatures(grayImage1);
[features1, points1] = extractFeatures(grayImage1, points1);
points2 = detectSURFFeatures(grayImage2);
[features2, points2] = extractFeatures(grayImage2, points2);
% 2. Match features:
indexPairs = matchFeatures(features1, features2, 'Unique', true);
matchedPoints1 = points1(indexPairs(:,1), :);
matchedPoints2 = points2(indexPairs(:,2), :);
Now I want to match the two feature set, but I want to use Euclidean Geometric Transform (which does no scaling); but this option is not available in the estimation function:
% 3. Find geometric transformation:
transform = estimateGeometricTransform(matchedPoints1, ...
matchedPoints2, ...
'euclidean'); % 'euclidean' does not work
% 'similarity' works
How can I match the two images using a Euclidean transform?

回答 (1 件)

Pratyush Roy
Pratyush Roy 2020 年 9 月 1 日
The estimateGeometricTransform function cannot estimate non-scaling or rigid transformation matrices.
However, there are other functions where one can set the ‘transformType’ to ‘rigid’. You can refer to the documentation link below for more information:

カテゴリ

Help Center および File ExchangeFeature Detection and Extraction についてさらに検索

製品


リリース

R2020a

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by