how to parse a cell array with images

3 次查看(过去 30 天)
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

回答(1 个)

Image Analyst
Image Analyst 2021-8-12
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?

类别

Help CenterFile Exchange 中查找有关 Images 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by