필터 지우기
필터 지우기

How to back track the image from the specific path given by the code(missclassified image) and i hereby going to enhance that particular image only. i obtained the path name of the missclassified images. i can't back track for specific images?

조회 수: 1 (최근 30일)
load correct_predictions
load file
[r c]=size(correct_predictions);
v=correct_predictions;
j=1;
OutputFolder = 'edit';
for i= 1:r
if v(i)==0;
pos(j)=i;
disp(file_list(i).name);
imwrite( file_list(i).name, OutputFolder);
j=j+1;
end
end
  댓글 수: 1
Walter Roberson
Walter Roberson 2018년 12월 29일
You should be using fullfile(OutputFolder, file_list(i).name)
But your imwrite() needs to be told what content to write.
By the way, you could probably save some effort using
pos = find(v);
for i = pos

댓글을 달려면 로그인하십시오.

답변 (0개)

카테고리

Help CenterFile Exchange에서 Image Data Workflows에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by