1 #ifndef MTF_COMPOSITE_BASE_H     2 #define MTF_COMPOSITE_BASE_H     4 #include "mtf/TrackerBase.h"     5 #include "mtf/Macros/common.h"    12     const vector<TrackerBase*> trackers;
    15     CompositeBase() : TrackerBase(), n_trackers(0), input_type(0){}
    17         TrackerBase(), trackers(_trackers) {
    18         n_trackers = trackers.size();
    19         input_type = trackers[0]->inputType();
    20         for(
int tracker_id = 1; tracker_id < n_trackers; tracker_id++){
    21             if(input_type != trackers[tracker_id]->inputType()){
    22                 input_type = HETEROGENEOUS_INPUT;
    28     void setImage(
const cv::Mat &img)
 override{
    29         for(
int tracker_id = 0; tracker_id < n_trackers; ++tracker_id){
    30             if(inputType() != HETEROGENEOUS_INPUT ||
    31                 img.type() == trackers[tracker_id]->inputType()){
    32                 trackers[tracker_id]->setImage(img);
    36     int inputType()
 const override{ 
return input_type; }
 Definition: CompositeBase.h:10