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
c4393803
Commit
c4393803
authored
Jul 10, 2014
by
Alex Leontiev
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
commit
parent
c8b31cd9
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
6 deletions
+2
-6
TLD.cpp
modules/tracking/src/TLD.cpp
+2
-6
No files found.
modules/tracking/src/TLD.cpp
View file @
c4393803
...
@@ -49,10 +49,6 @@
...
@@ -49,10 +49,6 @@
#include <opencv2/highgui.hpp>
#include <opencv2/highgui.hpp>
#include "TLD.hpp"
#include "TLD.hpp"
#define PI 3.14159265
using
namespace
cv
;
namespace
cv
{
namespace
tld
namespace
cv
{
namespace
tld
{
{
...
@@ -235,8 +231,8 @@ double overlap(const Rect2d& r1,const Rect2d& r2){
...
@@ -235,8 +231,8 @@ double overlap(const Rect2d& r1,const Rect2d& r2){
void
resample
(
const
Mat
&
img
,
const
RotatedRect
&
r2
,
Mat_
<
uchar
>&
samples
){
void
resample
(
const
Mat
&
img
,
const
RotatedRect
&
r2
,
Mat_
<
uchar
>&
samples
){
Mat_
<
float
>
M
(
2
,
3
),
R
(
2
,
2
),
Si
(
2
,
2
),
s
(
2
,
1
),
o
(
2
,
1
);
Mat_
<
float
>
M
(
2
,
3
),
R
(
2
,
2
),
Si
(
2
,
2
),
s
(
2
,
1
),
o
(
2
,
1
);
R
(
0
,
0
)
=
(
float
)
cos
(
r2
.
angle
*
PI
/
180
);
R
(
0
,
1
)
=
(
float
)(
-
sin
(
r2
.
angle
*
PI
/
180
));
R
(
0
,
0
)
=
(
float
)
cos
(
r2
.
angle
*
CV_PI
/
180
);
R
(
0
,
1
)
=
(
float
)(
-
sin
(
r2
.
angle
*
CV_
PI
/
180
));
R
(
1
,
0
)
=
(
float
)
sin
(
r2
.
angle
*
PI
/
180
);
R
(
1
,
1
)
=
(
float
)
cos
(
r2
.
angle
*
PI
/
180
);
R
(
1
,
0
)
=
(
float
)
sin
(
r2
.
angle
*
CV_PI
/
180
);
R
(
1
,
1
)
=
(
float
)
cos
(
r2
.
angle
*
CV_
PI
/
180
);
Si
(
0
,
0
)
=
(
float
)(
samples
.
cols
/
r2
.
size
.
width
);
Si
(
0
,
1
)
=
0.0
f
;
Si
(
0
,
0
)
=
(
float
)(
samples
.
cols
/
r2
.
size
.
width
);
Si
(
0
,
1
)
=
0.0
f
;
Si
(
1
,
0
)
=
0.0
f
;
Si
(
1
,
1
)
=
(
float
)(
samples
.
rows
/
r2
.
size
.
height
);
Si
(
1
,
0
)
=
0.0
f
;
Si
(
1
,
1
)
=
(
float
)(
samples
.
rows
/
r2
.
size
.
height
);
s
(
0
,
0
)
=
(
float
)
samples
.
cols
;
s
(
1
,
0
)
=
(
float
)
samples
.
rows
;
s
(
0
,
0
)
=
(
float
)
samples
.
cols
;
s
(
1
,
0
)
=
(
float
)
samples
.
rows
;
...
...
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