does not exist.

4 ビュー (過去 30 日間)
ASMA MOHAMMAD
ASMA MOHAMMAD 2021 年 6 月 3 日
コメント済み: Steven Lord 2021 年 6 月 5 日
clc
close all
clear all
imgpath{4}= 'D:\MATLAB\Finger_Knuckle_Print_Original_Database\Left_Index_Finger_165\';
fd4=fopen('loglist_Left_Index.txt','rt'); % 294 subjects Train Total train = 493
feat1=[];
k=6;
for i=1:165
txt1=fscanf(fd4,'%s\n',1);
for j=1:6
fn1=sprintf('%s/%s index/0%iROI.jpg',imgpath{4},txt1,j); %u01000s0001_fnf1.jpg
img1=imread(fn1);
F=[]
H=slbp(img1);
F=[F;H(:)];
P=ridgelet(img1,0);
QQ=q(F,P);
feat_test=[ feat_test [reshape(QQ ( :,:,1 ) ,[ ],1 )] ];
end
end
  3 件のコメント
ASMA MOHAMMAD
ASMA MOHAMMAD 2021 年 6 月 3 日
Error using imread (line 349)
File "D:\MATLAB\Finger_Knuckle_Print_Original_Database\Left_Index_Finger_165\/ index/01ROI.jpg"
does not exist.
Error in feat (line 14)
img1=imread(fn1);
Steven Lord
Steven Lord 2021 年 6 月 5 日
You have asked this question 1, 2, 3, and 4 times and received answers and/or comments on three of those questions.
Asking the same thing multiple times is not necessarily likely to get you different answers. It's likely to get you the same answer multiple times.
Please pick one of these questions and continue the discussion in that one question. Please don't ask this a fifth time.

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

回答 (1 件)

Steven Lord
Steven Lord 2021 年 6 月 3 日
Well, does it? Check with Windows Explorer.
Rather than using sprintf (where you need to be careful which slashes you use) I would use fullfile to assemble the path from the individual pieces.
P1 = fullfile('c:', 'temp', 'foo.txt') % Note that MATLAB Answers code executes on Linux
P1 = 'c:/temp/foo.txt'
n = 42;
P2 = fullfile(tempdir, 'subdir1', 'subdir2', sprintf('X%d_file.txt', n))
P2 = '/tmp/subdir1/subdir2/X42_file.txt'

カテゴリ

Help Center および File ExchangeMATLAB についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by