필터 지우기
필터 지우기

Want to get all outputs together as one in image processing

조회 수: 1 (최근 30일)
Shahrin Islam
Shahrin Islam 2018년 7월 27일
편집: Guillaume 2018년 7월 29일
Hello. Here I am attaching a file. I am implementing different edge detection methods and would like to have my outputs as per the following format attached. I am a new learner. Please help me. Thanks in advance.
  댓글 수: 1
KALYAN ACHARJYA
KALYAN ACHARJYA 2018년 7월 27일
편집: KALYAN ACHARJYA 2018년 7월 27일
Have you checked the answers? I have provided the three ways- More detail here

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

답변 (2개)

KALYAN ACHARJYA
KALYAN ACHARJYA 2018년 7월 27일
편집: KALYAN ACHARJYA 2018년 7월 27일
fileFolder=fullfile(matlabroot,'toolbox','images','imdata');
dirOutput=dir(fullfile(fileFolder,'AT3_1m4_*.tif'));
%Above line>>tif-image format, change it as per the image format
fileNames={dirOutput.name};
montage(fileNames, 'Size', [4 4]); %16 images 4 by 4 blocks, you can change it
  댓글 수: 9
KALYAN ACHARJYA
KALYAN ACHARJYA 2018년 7월 27일
You can reduce the space between subplot by using this custom function
Another way you can change the aspect ration visit here
Hope my Answers help you
Good Wishes
Shahrin Islam
Shahrin Islam 2018년 7월 28일
Can you help me with following code. [ha, pos] = tight_subplot(3,2,[.01 .03],[.1 .01],[.01 .01]) for ii = 1:6; axes(ha(ii)); plot(randn(10,ii)); end set(ha(1:4),'XTickLabel',''); set(ha,'YTickLabel','')

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


Guillaume
Guillaume 2018년 7월 27일
img = imread('cameraman.tif');
figure;
subplot(2, 3, 1); imshow(img);
subplot(2, 3, 2); imshow(imbinarize(img));
subplot(2, 3, 3); imshow(edge(imbinarize(img), 'Sobel'));
subplot(2, 3, 4); imshow(edge(imbinarize(img), 'Prewitt'));
subplot(2, 3, 5); imshow(edge(imbinarize(img), 'Roberts'));
subplot(2, 3, 6); imshow(edge(imbinarize(img), 'log'));
  댓글 수: 4
Image Analyst
Image Analyst 2018년 7월 28일
Do you need any other help with it?
Guillaume
Guillaume 2018년 7월 29일
편집: Guillaume 2018년 7월 29일
"Can you help me with following code."
Looks fine as it is. In order to help we would first need to know what problem you have with it.
PS: I've formatted your post for you. Follow Image Analyst's link to learn how to do that as I won't keep doing it for you.

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

카테고리

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

태그

Community Treasure Hunt

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

Start Hunting!

Translated by