how to take image as a user input from folder?
    3 views (last 30 days)
  
       Show older comments
    
    romasha
 on 3 Feb 2014
  
    
    
    
    
    Answered: waseem almuhtaseb
 on 14 Feb 2019
            hi, i want to take an image from user as an input and selected/input image is saved to another new folder.. how can i do this?
0 Comments
Accepted Answer
  Azzi Abdelmalek
      
      
 on 3 Feb 2014
        You can use uigetfile and copyfile functions
3 Comments
  Azzi Abdelmalek
      
      
 on 3 Feb 2014
				
      Edited: Azzi Abdelmalek
      
      
 on 3 Feb 2014
  
			ext='*.bmp'
folder='C:\Users\Romesha\Desktop\2';
image=uigetfile([folder '\' ext])
old_image=fullfile(folder,image)
copyfile(old_image,['C:\Users\Romesha\images\' image]);
More Answers (2)
  Alex Taylor
    
 on 3 Feb 2014
        Depending on your exact use case, I'd also recommend looking at the imsave and imputfile functions exposed by the Image Processing Toolbox.
0 Comments
See Also
Categories
				Find more on Convert Image Type in Help Center and File Exchange
			
	Products
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!