Create Dataset from Images

7 visualizzazioni (ultimi 30 giorni)
Fabiana Chiantore
Fabiana Chiantore il 21 Feb 2023
Risposto: Image Analyst il 21 Feb 2023
Hello!
I have some code which to practise I have used the Matlab dataset 'mri', now I would like to create a similar dataset with my images to run the code with. How can I do this?
I need the dataset to display the same qualities as the 'mri' dataset, so the images dimensions and color patterns.
Thank you!

Risposte (1)

Image Analyst
Image Analyst il 21 Feb 2023
I don't think you need that. If you want to process a sequence of your image files, see the FAQ:
If you still want to build a 4-D array you can use
rgbImage = imread(filename);
image4D = cat(4, image4D, rgbImage);
inside the for loop.

Categorie

Scopri di più su Medical Physics in Help Center e File Exchange

Prodotti


Release

R2022b

Community Treasure Hunt

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

Start Hunting!

Translated by