필터 지우기
필터 지우기

How to show a pairs of images from cell array?

조회 수: 2 (최근 30일)
Mehran Mustafa
Mehran Mustafa 2017년 10월 12일
댓글: Image Analyst 2017년 10월 13일
I'm trying to show the matrices stored in a cell as separate images. The cell is 511x3, with cell{1} and cell{3} as 3x3 matrices (which are to be converted to binary images) and cell{2} is the iteration count. I want to show the two images side by side with iteration count number in the middle.
initial = vec2mat(new(:,1),3);
final = vec2mat(new(:,iter),3);
iteration = iter-1;
sat{j,1} = initial;
sat{j,2} = iteration;
sat{j,3} = final;
So It should be something like:
[image](iteration)[image]
[image](iteration)[image]
[image](iteration)[image]
[image](iteration)[image]

답변 (1개)

The Matlabinator
The Matlabinator 2017년 10월 12일
Why don't you make the iteration count the title? You could do something like this:
im1 = cell{1};
im2 = cell{3};
imTotal = [im1 im2];
imagesc(imTotal), axis equal
title(cell{2})
  댓글 수: 3
Rik
Rik 2017년 10월 13일
You could expand to RGB and add a single pixel wide red line
Image Analyst
Image Analyst 2017년 10월 13일
Or use subplot() and text().

댓글을 달려면 로그인하십시오.

카테고리

Help CenterFile Exchange에서 Display Image에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by