Cannot find an exact (case-sensitive) match for 'lbp'

2 ビュー (過去 30 日間)
sun rise
sun rise 2022 年 2 月 25 日
編集済み: sun rise 2022 年 2 月 25 日
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');

採用された回答

Voss
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 件)

製品


リリース

R2019a

Community Treasure Hunt

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

Start Hunting!

Translated by