필터 지우기
필터 지우기

Info

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

can you explain the logic for this program

조회 수: 1 (최근 30일)
ASHA
ASHA 2013년 12월 11일
마감: MATLAB Answer Bot 2021년 8월 20일
[jpegFiles,pathname,FilterIndex]=uigetfile({'*.png'},'Select sequence of images','MultiSelect','on');
N=length(jpegFiles);
imageArray=cell(1,N);
grayimage = cell(1,N);
filtArray=cell(1,N);
sizeimage=cell(1,N);
im1=cell(1,N);
for i = 1:N
imageArray{i} = imread((fullfile(pathname,jpegFiles{i})));
figure(1);
subplot(4,3,i);
imshow(imageArray{i}); % Display image.
str=sprintf('original image %d',i);
title(str);
end
for j=1:N
grayimage{j} =rgb2gray(imageArray{j});
figure(2);
subplot(4,3,j);
imshow(grayimage{j}); % Display image.
str=sprintf('grayimage %d',j);
title(str);
end

답변 (1개)

Walter Roberson
Walter Roberson 2013년 12월 11일
It asks the user to select some images. It reads the images and displays them in color in one figure. It then goes back over the images and makes a grayscale version of each and displays the grayscale version in a second figure.

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

태그

아직 태그를 입력하지 않았습니다.

Community Treasure Hunt

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

Start Hunting!

Translated by