필터 지우기
필터 지우기

Info

이 질문은 마감되었습니다. 편집하거나 답변을 올리려면 질문을 다시 여십시오.

plzzz anyone fix this problem i want to load multiple groups

조회 수: 1 (최근 30일)
Mohd Shahrukh
Mohd Shahrukh 2018년 4월 3일
댓글: John D'Errico 2018년 4월 3일
• global myFolder; • global SVMstruct; • feat=[]; • class=[]; • classl=[]; • species=[]; • for i=0:2 • myFolder = strcat('C:\Booosssss\My matlab Work\Image database\Text_', num2str(i)); • if ~isdir(myFolder) • errorMessage = sprintf('Error: The following folder does not exist:\n%s', myFolder); • uiwait(warndlg(errorMessage)); • return; • end • filePattern = fullfile(myFolder, '*.png'); • pngFiles = dir(filePattern); • for k = 1:length(pngFiles) • baseFileName = pngFiles(k).name; • fullFileName = fullfile(myFolder, baseFileName); • fprintf(1,'Now reading %s\n',fullFileName); • imageArray = imread(fullFileName); • [featureVector,hogVisualization] = extractHOGFeatures(imageArray); • feat=[feat;featureVector]; • class=[class;i]; • drawnow; • end end • SVMstruct=svmtrain(feat,class);
  댓글 수: 1
John D'Errico
John D'Errico 2018년 4월 3일
You asked the identical question before. Nothing makes this one anything different, except your anxiety at not getting a response.

답변 (0개)

이 질문은 마감되었습니다.

Community Treasure Hunt

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

Start Hunting!

Translated by