Home > convert > convertFrame2Framelist.m

convertFrame2Framelist

PURPOSE ^

SYNOPSIS ^

function frame_list = convertFrame2Framelist(frames)

DESCRIPTION ^

CROSS-REFERENCE INFORMATION ^

This function calls: This function is called by:

SOURCE CODE ^

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

Generated on Thu 17-Mar-2011 14:45:51 by m2html © 2005