Image folder batch processing

= file_path   ' D: / the MATLAB / bin / IMAGES / test_t1024 / ' ;% image folder path 
img_path_list = the dir (strcat (file_path, ' * .tif ' ));% acquiring images of all the file folder, jpg 
img_num = length (img_path_list);% Get the total number of images
 IF img_num> 0 % satisfying the condition of the image
         for K = . 1 : img_num% individually read image 
            image_name = img_path_list (K) .name;% picture name 
            Im =   imread (strcat (file_path , image_name)); 


            '' '' '' '' '' '' '' '' '
            Processing operations
             ' '' '' '' '' '' '' '' ''

        end
end

 

Guess you like

Origin www.cnblogs.com/zgqcn/p/10973209.html