solve a 3 equations and 3 variables for images

1 回表示 (過去 30 日間)
Shel
Shel 2019 年 7 月 11 日
回答済み: Walter Roberson 2019 年 7 月 11 日
Hi,
I am trying to solve a three equation and thre variables for (each pixel) a set of images. I have solved different errors but I do not know what exactly I should do now and would be grateful if you help me.
here is part of the code:
for i=1:rows
%fprintf('j=', j);
for j=1:columns
%d1 , d2 , d3 are the value of pixels in three images
d1(i,j)
d2(i,j)
d3(i,j)
A=[H1, H2, H3; G1, G2, G3; F1, F2, F3]; % these are scalar values for example: H1=2648
B=[d1(i,j);d2(i,j);d3(i,j)];
X=inv(A)*B;
x=X(1);
y=X(2);
z=X(3);
R1(i,j)=x;
R2(i,j)=y;
R3(i,j)=z;
end
end
Error:
Error using *
MTIMES (*) is not fully supported for integer classes. At least one argument must be scalar.

採用された回答

Walter Roberson
Walter Roberson 2019 年 7 月 11 日
X = A\double(B)

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeGeometric Transformation and Image Registration についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by