Reading images from .mat file
Ältere Kommentare anzeigen
Hey,
I have a .mat file with a decent number of images created from the MATLAB app 'Image Labeler' and contains 2 labels. Now when I am trying to read the contents of the .mat file, I get this:
>> data=load('trial.mat')
data =
struct with fields:
labelDefs: [2×3 table]
I don't understand why is it a Struct? When I use size I get:
>> size data.labelDefs(1,1)
ans =
1 19
I understand that this image is a 2D, i.e., Black and White. But is it really checking the size of the image here? I am lost after this point. I tried using the imshow function as well but didn't bring me anything. My eventual goal is to use this .mat file to perform classification operation using deep learning and I can't get this things working.
Any kind of guidance and help is really appreciated.
Sorry if this question has been answered already.
Thank you in advance.
Akzeptierte Antwort
Weitere Antworten (0)
Kategorien
Mehr zu Variables finden Sie in Hilfe-Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!