how to parse a cell array with images

조회 수: 1 (최근 30일)
vania todorova
vania todorova 2021년 8월 12일
답변: Image Analyst 2021년 8월 12일
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