How do I extract a 256x256 matrix from a 1x1 cell?

1 view (last 30 days)
Screen Shot 2019-07-16 at 5.32.50 PM.png
Using an augmented image datastore, I reading a single image and the output looks like this. When I use the table2cell function, the new image has a strange output and not the matrix I was expecting (only 1x1!). How do I produce the 256x256 matrix of values that I am looking for?
  1 Comment
dpb
dpb on 16 Jul 2019
If you didn't want a cell, shouldn't call a function ending in "2cell"! :)
For a 1-element table,
img=table2array(oldimage);
will work...if there's more than one array in the table, however, this will merge all into a single array.
Can't see what the variable name is in the original table, but dereference the table by
img=tablename.variablename;
will return the data in its original storage form for the one variable

Sign in to comment.

Answers (0)

Categories

Find more on Computer Vision Toolbox in Help Center and File Exchange

Products


Release

R2019a

Community Treasure Hunt

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

Start Hunting!