How to access data with more than 524288 elements?
Show older comments
Hi,
I've got the problem to access my data. There are 46 cells and each cell contains 480x640x3 uint8.
I cannot display summaries of variables with more than 524288 elements on the workspace.
Please have a look at the attached image since pictures speak louder than words.

I've tried to extract into individual RGB channel but it is not working for all frames. It's only showed the first frame and got an error 'Index exceeds matrix dimensions'.
load('X:\data_depth\cf1','imagecolor');
[a,~]=size(imagecolor{1,1});
image=imread('X:\data\template.png');
counter=1;
for i = 1:length(imagecolor)
imagesc(imagecolor{i})
redChannel = i(:, :, 1);
greenChannel = i(:, :, 2);
blueChannel = i(:, :, 3);
pause(0.1)
counter = counter + 1;
endHow to get the variables of 480x640x3 uint8 in each cell?
Help me, please...
Thank you
Regards
Hana
2 Comments
Rik
on 26 May 2018
Why are you incrementing a counter? You have a for-loop that can do that for you. Also, you are using i as you loop counter, but then you are treating it as your image. If you put in i=imagecolor{i}; after your call to imagesc, at least that error should be resolved.
hana razak
on 26 May 2018
Accepted Answer
More Answers (0)
Categories
Find more on Image Arithmetic 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!