error undefined fuction and varible
1 Ansicht (letzte 30 Tage)
Ältere Kommentare anzeigen
Deepak Yadav
am 11 Jun. 2020
Beantwortet: Geoff Hayes
am 11 Jun. 2020
%% taking the Image
clc
clear all;
close all;
[fname path]=uigetfile('.jpg','open a face as input for training');
fname=strcat(path,fname);
im=imread(fname);
imshow(im);
title('input faces');
c=input('Enter the class(number from 1-10)');
%% features extraction
F=Featurestatical(im);
try
load db;
F=[F c];
db=[db;F];
save db.mat db
catch
db=[f c]; %10 12 1
save db.mat db
end
0 Kommentare
Akzeptierte Antwort
Geoff Hayes
am 11 Jun. 2020
Deepak - it looks like you have copied this code from (perhap) https://www.mathworks.com/matlabcentral/answers/435101-this-is-my-code-and-i-trained-two-types-of-classes-in-there-a-building-as-class-1-and-a-mountain-as so you will need to make sure that you have the function FeatureStatistical in your MATLAB search path. And you will want to make sure that the function call is spelled correctly. Try changing
F=Featurestatical(im);
to
F=FeatureStatistical(im);
0 Kommentare
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu Logical finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!