Reading images from .mat file
Show older comments
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.
Accepted Answer
More Answers (0)
Categories
Find more on Variables in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!