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
c0462358
Commit
c0462358
authored
Jan 10, 2013
by
marina.kolpakova
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix warnings under win
parent
a28f5a89
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
2 deletions
+4
-2
config.cpp
apps/sft/config.cpp
+2
-0
config.hpp
apps/sft/include/sft/config.hpp
+2
-2
No files found.
apps/sft/config.cpp
View file @
c0462358
...
...
@@ -121,6 +121,8 @@ struct Out
void
operator
()(
const
T
a
)
const
{
out
<<
a
<<
" "
;}
std
::
ostream
&
out
;
private
:
Out
&
operator
=
(
Out
const
&
other
);
};
std
::
ostream
&
sft
::
operator
<<
(
std
::
ostream
&
out
,
const
Config
&
m
)
...
...
apps/sft/include/sft/config.hpp
View file @
c0462358
...
...
@@ -60,7 +60,7 @@ struct Config
// Scaled and shrunk model size.
cv
::
Size
model
(
ivector
::
const_iterator
it
)
const
{
float
octave
=
powf
(
2.
f
,
*
it
);
float
octave
=
powf
(
2.
f
,
(
float
)(
*
it
)
);
return
cv
::
Size
(
cvRound
(
modelWinSize
.
width
*
octave
)
/
shrinkage
,
cvRound
(
modelWinSize
.
height
*
octave
)
/
shrinkage
);
}
...
...
@@ -68,7 +68,7 @@ struct Config
// Scaled but, not shrunk bounding box for object in sample image.
cv
::
Rect
bbox
(
ivector
::
const_iterator
it
)
const
{
float
octave
=
powf
(
2.
f
,
*
it
);
float
octave
=
powf
(
2.
f
,
(
float
)(
*
it
)
);
return
cv
::
Rect
(
cvRound
(
offset
.
x
*
octave
),
cvRound
(
offset
.
y
*
octave
),
cvRound
(
modelWinSize
.
width
*
octave
),
cvRound
(
modelWinSize
.
height
*
octave
));
}
...
...
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