INITDSKCFTRACKER.m initializes the data structure for DS-KCF tracker [1] INITDSKCFTRACKER function initializes the data structure of the DS-KCF tracker. In particular INPUT: none OUTPUT -trackerDSKCF_struct data structure that contains DS-KCF tracker data structure + currentTarget.posX column in the image plane + currentTarget.posY row in the image plane + currentTarget.h height of the target + currentTarget.w width of the target + currentTarget.bb bounding box of the target in the format [topLeftX, topLeftY, bottomRightX, bottomRightY] + currentTarget.meanDepthObj mean depth of the tracker object + currentTarget.stdDepthObj depth's standard deviation of the tracker object + currentTarget.LabelRegions cluster labels of the segmented target region + currentTarget.regionIndex= label of the object cluster + currentTarget.Centers depth centers of the clusters + currentTarget.LUT=[] LUT + currentTarget.occBB=[0 0 0 0]; occluding bounding box in the format [topLeftX, topLeftY, bottomRightX, bottomRightY] + currentTarget.totalOcc=0; total occlusion flag + currentTarget.underOcclusion=0; under occlusion flag +currentTarget.conf maximum response of the DSKCF for the current frame models in the frequency domain for the KCFbased tracking by using color and depth features (see [1] for mor details) +model_alphaf = []; +model_alphaDf = []; +model_xf = []; +model_xDf = []; +previousTarget contains same information of currentTarget, but they it is relative to the target tracked in the previous frame. See also WRAPPERDSKCF, INITDSKCFTRACKER_occluder [1] S. Hannuna, M. Camplani, J. Hall, M. Mirmehdi, D. Damen, T. Burghardt, A.Paiement, L. Tao, DS-KCF: A ~real-time tracker for RGB-D data, Journal of Real-Time Image Processing University of Bristol Massimo Camplani and Sion Hannuna massimo.camplani@bristol.ac.uk hannuna@compsci.bristol.ac.uk
0001 function trackerDSKCF_struct=initDSKCFtracker() 0002 % INITDSKCFTRACKER.m initializes the data structure for DS-KCF tracker [1] 0003 % 0004 % INITDSKCFTRACKER function initializes the data structure of the 0005 % DS-KCF tracker. In particular 0006 % 0007 % INPUT: none 0008 % 0009 % OUTPUT 0010 % -trackerDSKCF_struct data structure that contains DS-KCF tracker data 0011 % structure 0012 % 0013 % + currentTarget.posX column in the image plane 0014 % + currentTarget.posY row in the image plane 0015 % + currentTarget.h height of the target 0016 % + currentTarget.w width of the target 0017 % + currentTarget.bb bounding box of the target in the format 0018 % [topLeftX, topLeftY, bottomRightX, bottomRightY] 0019 % + currentTarget.meanDepthObj mean depth of the tracker object 0020 % + currentTarget.stdDepthObj depth's standard deviation of the tracker object 0021 % + currentTarget.LabelRegions cluster labels of the segmented target region 0022 % + currentTarget.regionIndex= label of the object cluster 0023 % + currentTarget.Centers depth centers of the clusters 0024 % + currentTarget.LUT=[] LUT 0025 % + currentTarget.occBB=[0 0 0 0]; occluding bounding box in the format 0026 % [topLeftX, topLeftY, bottomRightX, bottomRightY] 0027 % + currentTarget.totalOcc=0; total occlusion flag 0028 % + currentTarget.underOcclusion=0; under occlusion flag 0029 % +currentTarget.conf maximum response of the DSKCF for the current frame 0030 % 0031 % models in the frequency domain for the KCFbased tracking by using color 0032 % and depth features (see [1] for mor details) 0033 % +model_alphaf = []; 0034 % +model_alphaDf = []; 0035 % +model_xf = []; 0036 % +model_xDf = []; 0037 % 0038 % +previousTarget contains same information of currentTarget, but they 0039 % it is relative to the target tracked in the previous frame. 0040 % 0041 % See also WRAPPERDSKCF, INITDSKCFTRACKER_occluder 0042 % 0043 % [1] S. Hannuna, M. Camplani, J. Hall, M. Mirmehdi, D. Damen, T. 0044 % Burghardt, A.Paiement, L. Tao, DS-KCF: A ~real-time tracker for RGB-D 0045 % data, Journal of Real-Time Image Processing 0046 % 0047 % 0048 % University of Bristol 0049 % Massimo Camplani and Sion Hannuna 0050 % 0051 % massimo.camplani@bristol.ac.uk 0052 % hannuna@compsci.bristol.ac.uk 0053 0054 trackerDSKCF_struct=[]; 0055 0056 % current target position and bounding box 0057 trackerDSKCF_struct.currentTarget.posX=0;%column in the image plane 0058 trackerDSKCF_struct.currentTarget.posY=0;%row in the image plane 0059 trackerDSKCF_struct.currentTarget.h=0;%height of the target 0060 trackerDSKCF_struct.currentTarget.w=0;%width in the image planeof the target 0061 trackerDSKCF_struct.currentTarget.bb=[0 0 0 0]; % in the format [topLeftX, topLeftY, bottomRightX, bottomRightY] 0062 trackerDSKCF_struct.currentTarget.conf=0; 0063 %current target depth distribution info 0064 trackerDSKCF_struct.currentTarget.meanDepthObj=0;% mean depth of the tracker object 0065 trackerDSKCF_struct.currentTarget.stdDepthObj=0;% depth's standard deviation of the tracker object 0066 trackerDSKCF_struct.currentTarget.LabelRegions=[];%cluster labels of the segmented target region 0067 trackerDSKCF_struct.currentTarget.regionIndex=0;%label of the object cluster 0068 trackerDSKCF_struct.currentTarget.Centers=[];%depth centers of the clusters 0069 trackerDSKCF_struct.currentTarget.LUT=[];%LUT 0070 trackerDSKCF_struct.currentTarget.segmentedBB=[];%bounding box of the corresponding sgmented region 0071 %current target depth occluding info 0072 trackerDSKCF_struct.currentTarget.occBB=[0 0 0 0]; % in the format [topLeftX, topLeftY, bottomRightX, bottomRightY] 0073 trackerDSKCF_struct.currentTarget.totalOcc=0; % total occlusion flag 0074 trackerDSKCF_struct.currentTarget.underOcclusion=0; % under occlusion flag 0075 %target model alpha and X, see [1] for more details 0076 trackerDSKCF_struct.model_alphaf = []; 0077 trackerDSKCF_struct.model_alphaDf = []; 0078 trackerDSKCF_struct.model_xf = []; 0079 trackerDSKCF_struct.model_xDf = []; 0080 0081 0082 %previous target entries 0083 trackerDSKCF_struct.previousTarget=trackerDSKCF_struct.currentTarget; 0084 0085