Skip to content

Commit 5f40af2

Browse files
committed
tracking: moved CSRT to main repository, removed legacy implemetation
1 parent 0a5ac86 commit 5f40af2

14 files changed

+0
-2178
lines changed

modules/tracking/doc/tracking.bib

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -70,13 +70,6 @@ @inproceedings{MOSSE
7070
year = {2010}
7171
}
7272

73-
@Article{Lukezic_IJCV2018,
74-
author={Luke{\v{z}}i{\v{c}}, Alan and Voj{'i}{\v{r}}, Tom{'a}{\v{s}} and {\v{C}}ehovin Zajc, Luka and Matas, Ji{\v{r}}{'i} and Kristan, Matej},
75-
title={Discriminative Correlation Filter Tracker with Channel and Spatial Reliability},
76-
journal={International Journal of Computer Vision},
77-
year={2018},
78-
}
79-
8073
@article{chaumette:inria-00350283,
8174
title={{Visual servo control, Part I: Basic approaches}},
8275
author={Chaumette, Fran{\c c}ois and Hutchinson, S.},

modules/tracking/include/opencv2/tracking.hpp

Lines changed: 0 additions & 59 deletions
Original file line numberDiff line numberDiff line change
@@ -27,65 +27,6 @@ The development in this area is very fragmented and this API is an interface use
2727
*/
2828

2929

30-
/** @brief the CSRT tracker
31-
32-
The implementation is based on @cite Lukezic_IJCV2018 Discriminative Correlation Filter with Channel and Spatial Reliability
33-
*/
34-
class CV_EXPORTS_W TrackerCSRT : public Tracker
35-
{
36-
protected:
37-
TrackerCSRT(); // use ::create()
38-
public:
39-
virtual ~TrackerCSRT() CV_OVERRIDE;
40-
41-
struct CV_EXPORTS_W_SIMPLE Params
42-
{
43-
CV_WRAP Params();
44-
45-
CV_PROP_RW bool use_hog;
46-
CV_PROP_RW bool use_color_names;
47-
CV_PROP_RW bool use_gray;
48-
CV_PROP_RW bool use_rgb;
49-
CV_PROP_RW bool use_channel_weights;
50-
CV_PROP_RW bool use_segmentation;
51-
52-
CV_PROP_RW std::string window_function; //!< Window function: "hann", "cheb", "kaiser"
53-
CV_PROP_RW float kaiser_alpha;
54-
CV_PROP_RW float cheb_attenuation;
55-
56-
CV_PROP_RW float template_size;
57-
CV_PROP_RW float gsl_sigma;
58-
CV_PROP_RW float hog_orientations;
59-
CV_PROP_RW float hog_clip;
60-
CV_PROP_RW float padding;
61-
CV_PROP_RW float filter_lr;
62-
CV_PROP_RW float weights_lr;
63-
CV_PROP_RW int num_hog_channels_used;
64-
CV_PROP_RW int admm_iterations;
65-
CV_PROP_RW int histogram_bins;
66-
CV_PROP_RW float histogram_lr;
67-
CV_PROP_RW int background_ratio;
68-
CV_PROP_RW int number_of_scales;
69-
CV_PROP_RW float scale_sigma_factor;
70-
CV_PROP_RW float scale_model_max_area;
71-
CV_PROP_RW float scale_lr;
72-
CV_PROP_RW float scale_step;
73-
74-
CV_PROP_RW float psr_threshold; //!< we lost the target, if the psr is lower than this.
75-
};
76-
77-
/** @brief Create CSRT tracker instance
78-
@param parameters CSRT parameters TrackerCSRT::Params
79-
*/
80-
static CV_WRAP
81-
Ptr<TrackerCSRT> create(const TrackerCSRT::Params &parameters = TrackerCSRT::Params());
82-
83-
//void init(InputArray image, const Rect& boundingBox) CV_OVERRIDE;
84-
//bool update(InputArray image, CV_OUT Rect& boundingBox) CV_OVERRIDE;
85-
86-
CV_WRAP virtual void setInitialMask(InputArray mask) = 0;
87-
};
88-
8930

9031
/** @brief the KCF (Kernelized Correlation Filter) tracker
9132

modules/tracking/include/opencv2/tracking/tracking_legacy.hpp

Lines changed: 0 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -492,40 +492,6 @@ class CV_EXPORTS MultiTrackerTLD : public MultiTracker_Alt
492492
bool update_opt(InputArray image);
493493
};
494494

495-
/*********************************** CSRT ************************************/
496-
/** @brief the CSRT tracker
497-
498-
The implementation is based on @cite Lukezic_IJCV2018 Discriminative Correlation Filter with Channel and Spatial Reliability
499-
*/
500-
class CV_EXPORTS_W TrackerCSRT : public cv::legacy::Tracker
501-
{
502-
public:
503-
struct CV_EXPORTS Params : cv::tracking::TrackerCSRT::Params
504-
{
505-
/**
506-
* \brief Read parameters from a file
507-
*/
508-
void read(const FileNode& /*fn*/);
509-
510-
/**
511-
* \brief Write parameters to a file
512-
*/
513-
void write(cv::FileStorage& fs) const;
514-
};
515-
516-
/** @brief Constructor
517-
@param parameters CSRT parameters TrackerCSRT::Params
518-
*/
519-
static Ptr<legacy::TrackerCSRT> create(const TrackerCSRT::Params &parameters);
520-
521-
CV_WRAP static Ptr<legacy::TrackerCSRT> create();
522-
523-
CV_WRAP virtual void setInitialMask(InputArray mask) = 0;
524-
525-
virtual ~TrackerCSRT() CV_OVERRIDE {}
526-
};
527-
528-
529495
CV_EXPORTS_W Ptr<cv::Tracker> upgradeTrackingAPI(const Ptr<legacy::Tracker>& legacy_tracker);
530496

531497
//! @}
Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
11
#ifdef HAVE_OPENCV_TRACKING
2-
typedef TrackerCSRT::Params TrackerCSRT_Params;
32
typedef TrackerKCF::Params TrackerKCF_Params;
43
#endif

modules/tracking/misc/python/test/test_tracking_contrib.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,6 @@ def test_createLegacyTracker(self):
2424
t = cv.legacy.TrackerMedianFlow_create()
2525
#t = cv.legacy.TrackerGOTURN_create()
2626
t = cv.legacy.TrackerMOSSE_create()
27-
t = cv.legacy.TrackerCSRT_create()
2827

2928

3029
if __name__ == '__main__':

modules/tracking/samples/samples_utility.hpp

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,8 +52,6 @@ inline cv::Ptr<cv::legacy::Tracker> createTrackerByName_legacy(const std::string
5252
CV_Error(cv::Error::StsNotImplemented, "FIXIT: migration on new API is required");
5353
else if (name == "MOSSE")
5454
tracker = legacy::TrackerMOSSE::create();
55-
else if (name == "CSRT")
56-
tracker = legacy::TrackerCSRT::create();
5755
else
5856
CV_Error(cv::Error::StsBadArg, "Invalid tracking algorithm name\n");
5957

0 commit comments

Comments
 (0)