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
52619555
Commit
52619555
authored
Mar 07, 2018
by
Alexander Alekhin
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #1574 from adavoudi:patch-1
parents
9a4f415f
1794ab57
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
7 deletions
+3
-7
gtrTracker.cpp
modules/tracking/src/gtrTracker.cpp
+3
-7
No files found.
modules/tracking/src/gtrTracker.cpp
View file @
52619555
...
...
@@ -148,13 +148,9 @@ bool TrackerGOTURNImpl::updateImpl(const Mat& image, Rect2d& boundingBox)
resize
(
targetPatch
,
targetPatch
,
Size
(
INPUT_SIZE
,
INPUT_SIZE
),
0
,
0
,
INTER_LINEAR_EXACT
);
resize
(
searchPatch
,
searchPatch
,
Size
(
INPUT_SIZE
,
INPUT_SIZE
),
0
,
0
,
INTER_LINEAR_EXACT
);
//Mean Subtract
targetPatch
=
targetPatch
-
128
;
searchPatch
=
searchPatch
-
128
;
//Convert to Float type
Mat
targetBlob
=
dnn
::
blobFromImage
(
targetPatch
,
1.0
f
,
Size
(),
Scalar
(),
false
);
Mat
searchBlob
=
dnn
::
blobFromImage
(
searchPatch
,
1.0
f
,
Size
(),
Scalar
(),
false
);
//Convert to Float type and subtract mean
Mat
targetBlob
=
dnn
::
blobFromImage
(
targetPatch
,
1.0
f
,
Size
(),
Scalar
::
all
(
128
),
false
);
Mat
searchBlob
=
dnn
::
blobFromImage
(
searchPatch
,
1.0
f
,
Size
(),
Scalar
::
all
(
128
),
false
);
net
.
setInput
(
targetBlob
,
"data1"
);
net
.
setInput
(
searchBlob
,
"data2"
);
...
...
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