Azzera filtri
Azzera filtri

how to parse a cell array with images

2 visualizzazioni (ultimi 30 giorni)
vania todorova
vania todorova il 12 Ago 2021
Risposto: Image Analyst il 12 Ago 2021
I read a dataset with images into a cell array . now i m trying to take the data from each column and use it in another function . images are se[aratef omtp 5 grpi[s om 5 columns . but i cant figure out how to parse the cell array . i thought it will come out with the same dimensions but it doesnt . here is what i tried C being the cell array where the images are stored originally
images = cell(y,q,k,w,f);
for i=1:207
images{:,y} = double( C{i,1});
images{:,q} = double (C{i,2});
images{:,k} = double ( C{i,3});
images{:,w} = double(C{i,4});
images{:,f} = double(C{i,5});
out_image(i) = flowreg(y,q,k,w,f);
end

Risposte (1)

Image Analyst
Image Analyst il 12 Ago 2021
Why are you taking the contents of a cell, casting it to double and sticking it back in a cell? Also, why is images a 5-dimensional cell array? And you end up using only 2 indexes of images, not all 5. WHat values do y, q, k, w, and f have? What exactly does " images are se[aratef omtp 5 grpi[s om 5 columns " mean? If another function needs the image why not just pass that image to it? Why use a 5-dimensional cell array?

Categorie

Scopri di più su Images in Help Center e File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by