Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
O
opencv
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
Commits
415978b1
Commit
415978b1
authored
Sep 05, 2011
by
Anatoly Baksheev
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
warnings
parent
fbe2e6fb
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
12 additions
and
12 deletions
+12
-12
hybridtracker.cpp
modules/contrib/src/hybridtracker.cpp
+4
-4
retinafilter.cpp
modules/contrib/src/retinafilter.cpp
+0
-0
cmdparser.cpp
modules/core/src/cmdparser.cpp
+4
-4
test_operations.cpp
modules/core/test/test_operations.cpp
+3
-3
phasecorr.cpp
modules/imgproc/src/phasecorr.cpp
+1
-1
No files found.
modules/contrib/src/hybridtracker.cpp
View file @
415978b1
...
...
@@ -199,15 +199,15 @@ void CvHybridTracker::updateTrackerWithEM(Mat image) {
for
(
int
i
=
0
;
i
<
proj
.
rows
;
i
++
)
for
(
int
j
=
0
;
j
<
proj
.
cols
;
j
++
)
if
(
proj
.
at
<
double
>
(
i
,
j
)
>
0
)
{
samples
->
data
.
fl
[
count
*
2
]
=
i
;
samples
->
data
.
fl
[
count
*
2
+
1
]
=
j
;
samples
->
data
.
fl
[
count
*
2
]
=
(
float
)
i
;
samples
->
data
.
fl
[
count
*
2
+
1
]
=
(
float
)
j
;
count
++
;
}
em_model
.
train
(
samples
,
0
,
params
.
em_params
,
labels
);
curr_center
.
x
=
em_model
.
getMeans
().
at
<
double
>
(
0
,
0
);
curr_center
.
y
=
em_model
.
getMeans
().
at
<
double
>
(
0
,
1
);
curr_center
.
x
=
(
float
)
em_model
.
getMeans
().
at
<
double
>
(
0
,
0
);
curr_center
.
y
=
(
float
)
em_model
.
getMeans
().
at
<
double
>
(
0
,
1
);
}
void
CvHybridTracker
::
updateTrackerWithLowPassFilter
(
Mat
image
)
{
...
...
modules/contrib/src/retinafilter.cpp
View file @
415978b1
This diff is collapsed.
Click to expand it.
modules/core/src/cmdparser.cpp
View file @
415978b1
...
...
@@ -287,25 +287,25 @@ std::string CommandLineParser::analizeValue<std::string>(const std::string& str,
}
template
<>
int
CommandLineParser
::
analizeValue
<
int
>
(
const
std
::
string
&
str
,
bool
space_delete
)
int
CommandLineParser
::
analizeValue
<
int
>
(
const
std
::
string
&
str
,
bool
/*space_delete*/
)
{
return
fromStringNumber
<
int
>
(
str
);
}
template
<>
unsigned
int
CommandLineParser
::
analizeValue
<
unsigned
int
>
(
const
std
::
string
&
str
,
bool
space_delete
)
unsigned
int
CommandLineParser
::
analizeValue
<
unsigned
int
>
(
const
std
::
string
&
str
,
bool
/*space_delete*/
)
{
return
fromStringNumber
<
unsigned
int
>
(
str
);
}
template
<>
float
CommandLineParser
::
analizeValue
<
float
>
(
const
std
::
string
&
str
,
bool
space_delete
)
float
CommandLineParser
::
analizeValue
<
float
>
(
const
std
::
string
&
str
,
bool
/*space_delete*/
)
{
return
fromStringNumber
<
float
>
(
str
);
}
template
<>
double
CommandLineParser
::
analizeValue
<
double
>
(
const
std
::
string
&
str
,
bool
space_delete
)
double
CommandLineParser
::
analizeValue
<
double
>
(
const
std
::
string
&
str
,
bool
/*space_delete*/
)
{
return
fromStringNumber
<
double
>
(
str
);
}
modules/core/test/test_operations.cpp
View file @
415978b1
...
...
@@ -780,14 +780,14 @@ bool CV_OperationsTest::TestVec()
//these compile
cv
::
Vec3b
b
=
a
;
hsvImage_f
.
at
<
cv
::
Vec3f
>
(
i
,
j
)
=
cv
::
Vec3f
(
i
,
0
,
1
);
hsvImage_b
.
at
<
cv
::
Vec3b
>
(
i
,
j
)
=
cv
::
Vec3b
(
cv
::
Vec3f
(
i
,
0
,
1
));
hsvImage_f
.
at
<
cv
::
Vec3f
>
(
i
,
j
)
=
cv
::
Vec3f
(
(
float
)
i
,
0
,
1
);
hsvImage_b
.
at
<
cv
::
Vec3b
>
(
i
,
j
)
=
cv
::
Vec3b
(
cv
::
Vec3f
(
(
float
)
i
,
0
,
1
));
//these don't
b
=
cv
::
Vec3f
(
1
,
0
,
0
);
cv
::
Vec3b
c
;
c
=
cv
::
Vec3f
(
0
,
0
,
1
);
hsvImage_b
.
at
<
cv
::
Vec3b
>
(
i
,
j
)
=
cv
::
Vec3f
(
i
,
0
,
1
);
hsvImage_b
.
at
<
cv
::
Vec3b
>
(
i
,
j
)
=
cv
::
Vec3f
(
(
float
)
i
,
0
,
1
);
hsvImage_b
.
at
<
cv
::
Vec3b
>
(
i
,
j
)
=
a
;
hsvImage_b
.
at
<
cv
::
Vec3b
>
(
i
,
j
)
=
cv
::
Vec3f
(
1
,
2
,
3
);
}
...
...
modules/imgproc/src/phasecorr.cpp
View file @
415978b1
...
...
@@ -322,7 +322,7 @@ void cv::createHanningWindow(OutputArray _dst, cv::Size winSize, int type)
for
(
int
j
=
0
;
j
<
cols
;
j
++
)
{
double
wc
=
0.5
*
(
1.0
f
-
cos
(
2.0
f
*
CV_PI
*
(
double
)
j
/
(
double
)(
cols
-
1
)));
dstData
[
i
*
cols
+
j
]
=
wr
*
wc
;
dstData
[
i
*
cols
+
j
]
=
(
float
)(
wr
*
wc
)
;
}
}
...
...
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