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
8fb6d9f6
Commit
8fb6d9f6
authored
Oct 19, 2012
by
Andrey Kamaev
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix Android build warnings
parent
546ec2af
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
15 additions
and
4 deletions
+15
-4
arithm.cpp
modules/core/src/arithm.cpp
+4
-4
stitching_detailed.cpp
samples/cpp/stitching_detailed.cpp
+11
-0
No files found.
modules/core/src/arithm.cpp
View file @
8fb6d9f6
...
...
@@ -1228,10 +1228,10 @@ static int actualScalarDepth(const double* data, int len)
maxval
=
MAX
(
maxval
,
ival
);
}
return
i
<
len
?
CV_64F
:
minval
>=
0
&&
maxval
<=
UCHAR_MAX
?
CV_8U
:
minval
>=
SCHAR_MIN
&&
maxval
<=
SCHAR_MAX
?
CV_8S
:
minval
>=
0
&&
maxval
<=
USHRT_MAX
?
CV_16U
:
minval
>=
SHRT_MIN
&&
maxval
<=
SHRT_MAX
?
CV_16S
:
minval
>=
0
&&
maxval
<=
(
int
)
UCHAR_MAX
?
CV_8U
:
minval
>=
(
int
)
SCHAR_MIN
&&
maxval
<=
(
int
)
SCHAR_MAX
?
CV_8S
:
minval
>=
0
&&
maxval
<=
(
int
)
USHRT_MAX
?
CV_16U
:
minval
>=
(
int
)
SHRT_MIN
&&
maxval
<=
(
int
)
SHRT_MAX
?
CV_16S
:
CV_32S
;
}
...
...
samples/cpp/stitching_detailed.cpp
View file @
8fb6d9f6
...
...
@@ -326,7 +326,10 @@ static int parseCmdArgs(int argc, char** argv)
int
main
(
int
argc
,
char
*
argv
[])
{
#if ENABLE_LOG
int64
app_start_time
=
getTickCount
();
#endif
cv
::
setBreakOnError
(
true
);
int
retval
=
parseCmdArgs
(
argc
,
argv
);
...
...
@@ -345,7 +348,9 @@ int main(int argc, char* argv[])
bool
is_work_scale_set
=
false
,
is_seam_scale_set
=
false
,
is_compose_scale_set
=
false
;
LOGLN
(
"Finding features..."
);
#if ENABLE_LOG
int64
t
=
getTickCount
();
#endif
Ptr
<
FeaturesFinder
>
finder
;
if
(
features_type
==
"surf"
)
...
...
@@ -420,7 +425,9 @@ int main(int argc, char* argv[])
LOGLN
(
"Finding features, time: "
<<
((
getTickCount
()
-
t
)
/
getTickFrequency
())
<<
" sec"
);
LOG
(
"Pairwise matching"
);
#if ENABLE_LOG
t
=
getTickCount
();
#endif
vector
<
MatchesInfo
>
pairwise_matches
;
BestOf2NearestMatcher
matcher
(
try_gpu
,
match_conf
);
matcher
(
features
,
pairwise_matches
);
...
...
@@ -516,7 +523,9 @@ int main(int argc, char* argv[])
}
LOGLN
(
"Warping images (auxiliary)... "
);
#if ENABLE_LOG
t
=
getTickCount
();
#endif
vector
<
Point
>
corners
(
num_images
);
vector
<
Mat
>
masks_warped
(
num_images
);
...
...
@@ -634,7 +643,9 @@ int main(int argc, char* argv[])
masks
.
clear
();
LOGLN
(
"Compositing..."
);
#if ENABLE_LOG
t
=
getTickCount
();
#endif
Mat
img_warped
,
img_warped_s
;
Mat
dilated_mask
,
seam_mask
,
mask
,
mask_warped
;
...
...
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