MATLAB Answers


Array dimensions must match for binary array op. error how to solve this problem thanks for all

Mostfa Abd El-Aziz さんによって質問されました 2019 年 6 月 19 日
最新アクティビティ Star Strider
さんによって コメントされました 2019 年 6 月 19 日

  0 件のコメント

サインイン to comment.

1 件の回答

回答者: Star Strider
2019 年 6 月 19 日

Apparently ‘InputImage’ does not have the same row, column (and perhaps third-dimension) sizes as ‘ReconstructedImage’.
You have to determine that.
The solution depends on what you want as the end result.

  7 件のコメント

how to determine these attributes
thanx alot dear star strider
Thanx alot dear Star Stider to your cooperation with me
The Problem Solved
The Problem was in images dimention
thanks alot
Star Strider
2019 年 6 月 19 日
RIsize = size(ReconstructedImage);
IIsize = size(InputImage);
Then, compare them. For images, try this:
Test = @(I1size,I2size) all((I1size(1:2) == I2size(1:2)) & (numel(I1size) == numel(I2size))); % True If Image Dimensions Are The Same
Check = Test(RIsize,IIsize)

サインイン to comment.

Translated by