フィルターのクリア

i have three image parts and i want to add them and get three images back,but i getting an error due to sizes of matrix is different

1 回表示 (過去 30 日間)
clc;
clear all;
I=imread('thumb.jpg');
figure, imshow(I);
[r c]=size(I);
imshow(I);
for i=1:1:r
for j=1:1:c
if I(i,j) > 127
I1(i,j)=255;
else
I1(i,j)=0;
end
end
end
figure, imshow(I1);
I2=I1(1:56, 1:122);
I3=I1(57:113, 1:122);
I4=I1(114:170, 1:122);
figure, imshow(I2);
figure, imshow(I3);
figure, imshow(I4);
Ip=[I1, I2, I3];
imshow(Ip);

採用された回答

KSSV
KSSV 2017 年 3 月 29 日
Ip=[I1;I2; I3];
imshow(Ip);

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeGraphics Object Programming についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by