how can I write and reads an image from a folder?

1 次查看(过去 30 天)
I want a code solve this
  1. read an image from a folder
  2. select image and show it into axes
  3. write into the image by making some filters
  4 个评论
Image Analyst
Image Analyst 2015-7-2
Make it a full file name - folder plus base file name:
filename = fullfile(pathname, filename);

请先登录,再进行评论。

采纳的回答

Image Analyst
Image Analyst 2015-6-26
Start with my Image Segmentation Tutorial. http://www.mathworks.com/matlabcentral/fileexchange/?term=authorid%3A31862 It does all of the things you requested.

更多回答(1 个)

Rushikesh Tade
Rushikesh Tade 2015-6-26
  • read an image from a folder
variable_name=imread('image_name.ext')
  • select image and show it into axes
imshow(variable_name)
  • write into the image by making some filters
imwrite(Variable_consisting_processed_image,'output_filename')

类别

Help CenterFile Exchange 中查找有关 Images 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by