How to access data with more than 524288 elements?
Mostrar comentarios más antiguos
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 comentarios
Rik
el 26 de Mayo de 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
el 26 de Mayo de 2018
Respuesta aceptada
Más respuestas (0)
Categorías
Más información sobre Matrix Indexing en Centro de ayuda y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!