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
d11ab685
Commit
d11ab685
authored
Aug 26, 2018
by
Suleyman TURKMEN
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update TrackerCSRT
parent
5d3928e4
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 @
d11ab685
...
...
@@ -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 @
d11ab685
...
...
@@ -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