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

2 views (last 30 days)
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');

Accepted Answer

Voss
Voss on 25 Feb 2022
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.

More Answers (0)

Products


Release

R2019a

Community Treasure Hunt

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

Start Hunting!