How to upload multi files of .mat, then convert to image and crop the center region of the outcome image ? Automatically

1 次查看(过去 30 天)
- number of .mat files automatically uploaded
  • convert the uploaded files to images
  • crop the centriod of images and save to different destination

回答(1 个)

Swetha Polemoni
Swetha Polemoni 2020-11-25
Hi Mohamed Elbeialy,
It is my understanding that you want to load a mat file , covert it into image and work on it.
  • To understand , to load a mat file and convert into image you could refer to following links ,link1, link2 and link3.
  • For cropping image you could use "imcrop". There are many ways to crop images using imcrop that are clearly explained with examples in the documentation. Feel free to experiment to get the way you wanted to crop the image.
  • To save image in filepath specified, you could use "imwrite".
Hope this helps.

类别

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

产品


版本

R2019b

Community Treasure Hunt

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

Start Hunting!

Translated by