select_goodfile.m 661 Bytes

%missing file delete
%LOCATION : raw skeletone files
path_name = '/home/rfj/바탕화면/actionGAN/all_motionpatch/';
fileID = fopen('/home/rfj/바탕화면/actionGAN/skeletone_INDEX/stand_2.txt','r');
formatSpec = '%s';
sizeA = [20 Inf];   
perfect_list = fscanf(fileID,formatSpec,sizeA);
perfect_list = perfect_list.';
fclose(fileID);

L = length(perfect_list);

for K = 1:L
    file_name = char(perfect_list(K,:));
    file_location = strcat(path_name,file_name,'.png')
    ori = imread(file_location);
  
    new_file_name = strcat('/home/rfj/바탕화면/actionGAN/DCGAN/new_motionpatch/',file_name(1:20),'.png');
    imwrite(ori,new_file_name);
    
end