Home > class > WBC.m

WBC

PURPOSE ^

SYNOPSIS ^

This is a script file.

DESCRIPTION ^

CROSS-REFERENCE INFORMATION ^

This function calls: This function is called by:

SUBFUNCTIONS ^

SOURCE CODE ^

0001 classdef WBC < hgsetget
0002     properties        
0003         Frame
0004         Id                            
0005         Row
0006         Col
0007         Area
0008         Shape
0009         Type %DetectedCell or KalmanCell
0010         Status %Cell behaviors: Statis Rolling Flowing Collided
0011         Next=[]
0012         Prev=[]
0013     end % properties
0014     
0015 %     properties (Dependent= true)
0016 %         RC
0017 %     end
0018 %
0019 %     properties (Constant = true)
0020 %         Me = 5.976e24; % Mass of Earch
0021 %     end
0022     
0023     methods
0024         function cell = WBC(frame, id, row, col, area, shape)
0025             %Constructor of result from detection
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 %         function rc = get.RC(cell)
0037 %             rc = cell.Row * cell.Col;
0038 %         end
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 %end methods
0047 end %end classdef

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