Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
O
opencv_contrib
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
submodule
opencv_contrib
Commits
e29fc6b7
Commit
e29fc6b7
authored
Aug 31, 2018
by
Alexander Alekhin
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #1737 from sturkmen72:update_TrackerCSRT
parents
e993e8c0
d11ab685
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
4 deletions
+4
-4
tracker.hpp
modules/tracking/include/opencv2/tracking/tracker.hpp
+1
-1
trackerCSRT.cpp
modules/tracking/src/trackerCSRT.cpp
+3
-3
No files found.
modules/tracking/include/opencv2/tracking/tracker.hpp
View file @
e29fc6b7
...
...
@@ -1522,7 +1522,7 @@ public:
CV_WRAP
static
Ptr
<
TrackerCSRT
>
create
();
virtual
void
setInitialMask
(
const
Mat
mask
)
=
0
;
CV_WRAP
virtual
void
setInitialMask
(
InputArray
mask
)
=
0
;
virtual
~
TrackerCSRT
()
CV_OVERRIDE
{}
};
...
...
modules/tracking/src/trackerCSRT.cpp
View file @
e29fc6b7
...
...
@@ -35,7 +35,7 @@ protected:
TrackerCSRT
::
Params
params
;
bool
initImpl
(
const
Mat
&
image
,
const
Rect2d
&
boundingBox
)
CV_OVERRIDE
;
virtual
void
setInitialMask
(
const
Mat
mask
)
CV_OVERRIDE
;
virtual
void
setInitialMask
(
InputArray
mask
)
CV_OVERRIDE
;
bool
updateImpl
(
const
Mat
&
image
,
Rect2d
&
boundingBox
)
CV_OVERRIDE
;
void
update_csr_filter
(
const
Mat
&
image
,
const
Mat
&
my_mask
);
void
update_histograms
(
const
Mat
&
image
,
const
Rect
&
region
);
...
...
@@ -99,9 +99,9 @@ void TrackerCSRTImpl::write(cv::FileStorage& fs) const
params
.
write
(
fs
);
}
void
TrackerCSRTImpl
::
setInitialMask
(
const
Mat
mask
)
void
TrackerCSRTImpl
::
setInitialMask
(
InputArray
mask
)
{
preset_mask
=
mask
;
preset_mask
=
mask
.
getMat
()
;
}
bool
TrackerCSRTImpl
::
check_mask_area
(
const
Mat
&
mat
,
const
double
obj_area
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment