Home > convert > struct2obj.m

struct2obj

PURPOSE ^

load frame_list;

SYNOPSIS ^

function frames = struct2obj(frame_list)

DESCRIPTION ^

 load frame_list;

CROSS-REFERENCE INFORMATION ^

This function calls: This function is called by:

SOURCE CODE ^

0001 function frames = struct2obj(frame_list)
0002 % load frame_list;
0003 frames= [];
0004 dir = [-160 620]; %clpsaline1bl#4
0005 % dir = [300,490]; %clpsaline1bl#3
0006 % dir = [241, 505]; %clpsaline1bl#1
0007 for f = 1: length(frame_list)
0008     frame = WBCFrame('clpsaline1bl#4',f);
0009     cells = frame_list(f).cell;
0010 
0011     for id = 1: length(cells)
0012         try
0013         cell = WBC(f,id,cells(id).row, cells(id).col,cells(id).area,cells(id).shape);
0014         catch
0015             pause();
0016         end
0017         frame.add(cell);
0018         frame.Cells(end).Type = dir;
0019     end
0020     frames = [frames frame];
0021 end
0022 
0023 frames = staticCellProb(frames);
0024 % save frames frames;

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