0001 classdef WBC < hgsetget
0002 properties
0003 Frame
0004 Id
0005 Row
0006 Col
0007 Area
0008 Shape
0009 Type
0010 Status
0011 Next=[]
0012 Prev=[]
0013 end
0014
0015
0016
0017
0018
0019
0020
0021
0022
0023 methods
0024 function cell = WBC(frame, id, row, col, area, shape)
0025
0026 if nargin > 0
0027 cell.Row = row;
0028 cell.Col = col;
0029 cell.Id = id;
0030 cell.Frame = frame;
0031 cell.Area = area;
0032 cell.Shape = shape;
0033 end
0034 end
0035
0036
0037
0038
0039
0040 function plot(cell,varargin)
0041 plot(cell.Row, cell.Col, varargin{:});
0042 title(['WBC ', num2str(cell.Id), ' in frame ' , num2str(cell.Frame)]);
0043 xlabel('Column');
0044 ylabel('Row');
0045 end
0046 end
0047 end