Cannot find an exact (case-sensitive) match for 'lbp'
조회 수: 2 (최근 30일)
이전 댓글 표시
clear all
clc
PF = 'D:\Project\DB1\train\' % Parent Folder
SFL = dir(PF) ;% List the sub folders
[mp, np] = size(SFL); % compute size = number of subfolders & files & . & ..
csf=0;% counter of JUST subfolders found in PF
Tr=1;
for i=3:mp
%% keep only folders:
k = strfind(SFL(i).name,'.');
if isempty(strfind(SFL(i).name,'.'))
csf = csf +1; % one sub folder found
SFN = SFL(i).name ;% extract his name
%--------
tifList = ls(sprintf('%s%s%s%s',PF,SFN,'\','*.tif')); % list all jpg files
[ms, ns] = size(tifList); % ms = number of image files found
%% Processing for each tif file:
for j=1:ms
tifFileName = tifList(j,:); % extract name of tif file
IM=imread([PF SFN '\' tifFileName]);
MAPPING=getmapping(8,'u2');
features=lbp(IM,1,8,MAPPING,'h');
featuresVector1(j,:) = features(:);
end
end
end
%PF_SFN_imgName = sprintf('%s%s%s',PF,c1,'\',tifFileName)
featuresVectors = [featuresVector1];
save('Tr_features_Set_lbp', 'featuresVectors');
Cannot find an exact (case-sensitive) match for 'lbp'
The closest match is: Lbp in D:\Project\code\Lbp.m
Error in Untitled2 (line 26)
features=lbp(IM,1,8,MAPPING,'h');
댓글 수: 0
채택된 답변
Voss
2022년 2월 25일
MATLAB is case-sensitive, so lbp and Lbp would refer to two different functions/variables. The error message is saying essentially that MATLAB doesn't know what lbp is and suggesting that perhaps you meant to type Lbp instead.
댓글 수: 0
추가 답변 (0개)
참고 항목
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!