필터 지우기
필터 지우기

Info

이 질문은 마감되었습니다. 편집하거나 답변을 올리려면 질문을 다시 여십시오.

i want to matrix merge but find problem

조회 수: 1 (최근 30일)
tsai kai shung
tsai kai shung 2017년 10월 23일
마감: MATLAB Answer Bot 2021년 8월 20일
clear all,clc;
a = imread('2.jpg');
b = a(1:160,1:110,:);
c = a(1:80,111:210,:);
d = a(1:160,211:320,:);
e = [b;c;d];
subplot(131),imshow(b),subplot(132),imshow(c),subplot(133),imshow(d);
i want to merge b、c、d matrix merge but show the error message:
Error using vertcat
Dimensions of matrices being concatenated are not consistent.
Error in in (line 7)
e = [b;c;d];

답변 (1개)

Guillaume
Guillaume 2017년 10월 23일
Well, yes, b, c and d must have the same number of columns for you to vertically concatenate them. your d has 10 more columns than b and c. You can reduce the number of columns in d (e.g. use 211:310 instead) if it's acceptable to you. If not, you need to explain what you want to do (rescale? pad?) for the smaller matrices.
  댓글 수: 4
tsai kai shung
tsai kai shung 2017년 10월 24일
like this i just use cat image to show
Guillaume
Guillaume 2017년 10월 24일
i want to select the ROI
What has this got with your initial question which attempts to stitch three images together?
It's really unclear what you're asking help about.

이 질문은 마감되었습니다.

Community Treasure Hunt

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

Start Hunting!