0001 function frame_list = convertFrame2Framelist(frames) 0002 frame_list = []; 0003 0004 for fra =1: length(frames) 0005 frame = frames(fra); 0006 fr = frames(fra).Id; 0007 for ce = 1 : length(frame.Cells) 0008 frame_list(fr).cell(ce).row = frame.Cells(ce).Row; 0009 frame_list(fr).cell(ce).col = frame.Cells(ce).Col; 0010 frame_list(fr).cell(ce).area = frame.Cells(ce).Area; 0011 frame_list(fr).cell(ce).shape = frame.Cells(ce).Shape; 0012 frame_list(fr).cell(ce).corID = -1; 0013 frame_list(fr).cell(ce).neighbor = 0; 0014 0015 end 0016 0017 0018 end