フィルターのクリア

I need some help with batch processing images in MatLab: How do I fix this error?

2 ビュー (過去 30 日間)
August Hoel
August Hoel 2018 年 11 月 1 日
回答済み: awezmm 2018 年 11 月 2 日
I am trying to batch process images by the following code:
fileFolder = fullfile('Mito2D/RAW/');
dirOutput = dir(fullfile(fileFolder,'*.tif'));
fileNames = {dirOutput.name}
numFrames = numel(fileNames)
I = imread(fileNames{1})
I get this error message that says that image/file does not exist, however it clearly does it exist as you can see on the image below. So what does this error message imply, and how do I fix it?

回答 (1 件)

awezmm
awezmm 2018 年 11 月 2 日
Look at the current folder place on the bottom left. You are in an outer folder not the folder with image. You would need the full path to the image. You can instead just change to directory with images. Put: cd(fileFolder) before you imread

カテゴリ

Help Center および File ExchangeImage Processing Toolbox についてさらに検索

製品


リリース

R2017b

Community Treasure Hunt

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

Start Hunting!

Translated by