Want to get all outputs together as one in image processing
4 次查看(过去 30 天)
显示 更早的评论
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.
回答(2 个)
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
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
2018-7-28
Do you need any other help with it?
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 Center 和 File Exchange 中查找有关 Convert Image Type 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!