Is there any alternative of cell array?

I am working on 1000 different binary images. For each of the image I am getting 4 different plots. I am running a loop for these 1000 dataset. And storing peaks information in a matrix where each element of the matrix is cell array. But this approach making my program extremely slow. I am unable to get my results . Is there any alternative for this ??

5 Commenti

jonas
jonas il 13 Set 2018
Modificato: jonas il 13 Set 2018
Storing 1000 images in memory can be slow regardless of class. Do you have 4000 plot objects as well? That may also be an issue. You should show us your code and perhaps your desired output.
Yes I have 4000 plots as well.
If you describe what your desired output is, maybe someone can suggest a better way. Having 4000 line objects (or even axes??) and 1000 images in memory seems like a recipe for poor performance.
I agree with Jonas: don't keep all the plots and images in memory at the same time, but load,process,discard, so you only have that peak information in memory.
You could try imageDatastore. It can be helpful in workflows where you need to process a large collection of images that don't all fit into memory at once.

Accedi per commentare.

Risposte (0)

Richiesto:

il 13 Set 2018

Commentato:

il 13 Set 2018

Community Treasure Hunt

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

Start Hunting!

Translated by