How to convert images in .mat format to .csv format

2 views (last 30 days)
I am using brain image database containing 3064 image database.
How to convert thsi .mat dataset to .csv or. xls form.

Answers (2)

KALYAN ACHARJYA
KALYAN ACHARJYA on 18 Dec 2020
Steps: (Use Loop to all one by one file)
  • Load the images
  • csvwrite to save save the file

Image Analyst
Image Analyst on 18 Dec 2020
See attached demo to write out an RGB image in rows of [x, y, r, g, b]. One row for every pixel.
Adapt as needed.

Categories

Find more on Convert Image Type in Help Center and File Exchange

Tags

Community Treasure Hunt

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

Start Hunting!