how to parse a cell array with images
Show older comments
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
Answers (1)
Image Analyst
on 12 Aug 2021
0 votes
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?
Categories
Find more on Images in Help Center and File Exchange
Products
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!