필터 지우기
필터 지우기

[HELP ] problem in reading multiple images

조회 수: 2 (최근 30일)
Muahammad Younas
Muahammad Younas 2018년 3월 3일
댓글: KALYAN ACHARJYA 2018년 3월 17일
i am trying to access multiple images from my file directory to load it into an array using for loop in matlab .... and convert it into double format please help me out ..... thanks in advance

답변 (1개)

KALYAN ACHARJYA
KALYAN ACHARJYA 2018년 3월 3일
편집: KALYAN ACHARJYA 2018년 3월 17일
% Please save all images name in a symmetric manner before doing the operation
% names for example im1,im2,im3...
%Save the folder of images in the current directory
path_directory='folder_name'; % 'Folder name'
original_files=dir([path_directory '/*.jpg']);
for k=1:length(original_files)
filename=[path_directory '/' original_files(k).name];
image_orginal=imread(filename);
% Image read is done
% Do operation Double conversion
%double_image=...
end
  댓글 수: 2
Muahammad Younas
Muahammad Younas 2018년 3월 3일
KALYAN ACHARJYA
KALYAN ACHARJYA 2018년 3월 17일
Share your code screenshot

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

카테고리

Help CenterFile Exchange에서 Import, Export, and Conversion에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by