how to read and process a folder of image?

3 ビュー (過去 30 日間)
win
win 2013 年 5 月 9 日
i have a folder of image the folder name is 'image' in the current directory. all files are .jpg format. now i can apply the function for each image finally i can get a output image for each image. now i can store the output images in a another folder. friends please help me to give some idea to read the image finally store the image. thanks.......

採用された回答

Image Analyst
Image Analyst 2013 年 5 月 9 日

その他の回答 (2 件)

David Sanchez
David Sanchez 2013 年 5 月 9 日
I don't know if I got it right or wrong, you should try to describe your problem clearer. The following
image(imread('your_image.jpg'))
will read and show your image.
  1 件のコメント
win
win 2013 年 5 月 9 日
how to read the folder of image

サインインしてコメントする。


David Sanchez
David Sanchez 2013 年 5 月 9 日
Different choices: write the folder path as prefix in the image.jpg name ( C:\whatever\my_pictures ), so that your code is:
image(imread('C:\whatever\my_pictures\your_image.jpg'))
If this is too cumbersome, use uigetfile function:
[file_name file_path] = uigetfile('*.jpg','Select image');
full_file_name = fullfile(file_path, file_name);
image(imread(full_file_name))

カテゴリ

Help Center および File ExchangeStartup and Shutdown についてさらに検索

製品

Community Treasure Hunt

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

Start Hunting!

Translated by