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
dd71bef6
Commit
dd71bef6
authored
Dec 18, 2013
by
Vladimir Bystricky
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix errors in example (samples/cpp/intelperc_capture.cpp)
parent
63ae0eeb
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
7 deletions
+7
-7
intelperc_capture.cpp
samples/cpp/intelperc_capture.cpp
+7
-7
No files found.
samples/cpp/intelperc_capture.cpp
View file @
dd71bef6
...
...
@@ -20,12 +20,12 @@ static bool g_showClosedPoint = false;
static
int
g_closedDepthPoint
[
2
];
static
void
printUsage
(
char
*
arg0
)
static
void
printUsage
(
c
onst
c
har
*
arg0
)
{
char
*
filename
=
arg0
;
c
onst
c
har
*
filename
=
arg0
;
while
(
*
filename
)
filename
++
;
while
((
arg0
<=
filename
)
&&
(
'\\'
!=
*
filename
)
&&
(
'
/
/
' != *filename))
while
((
arg0
<=
filename
)
&&
(
'\\'
!=
*
filename
)
&&
(
'/'
!=
*
filename
))
filename
--
;
filename
++
;
...
...
@@ -95,7 +95,7 @@ static void parseCMDLine(int argc, char* argv[])
exit
(
-
1
);
}
}
if
(
g_
closedDepth
Point
&&
(
-
1
==
g_depthStreamProfileIdx
))
if
(
g_
showClosed
Point
&&
(
-
1
==
g_depthStreamProfileIdx
))
{
cerr
<<
"For --show-closed depth profile has be selected"
<<
endl
;
exit
(
-
1
);
...
...
@@ -153,7 +153,7 @@ static void printStreamProperties(VideoCapture &capture)
static
void
imshowImage
(
const
char
*
winname
,
Mat
&
image
,
VideoCapture
&
capture
)
{
if
(
g_
closedDepth
Point
)
if
(
g_
showClosed
Point
)
{
Mat
uvMap
;
if
(
capture
.
retrieve
(
uvMap
,
CV_CAP_INTELPERC_UVDEPTH_MAP
))
...
...
@@ -283,7 +283,7 @@ static void imshowDepth(const char *winname, Mat &depth, VideoCapture &capture)
imshow
(
winname
,
image
);
}
int
_t
main
(
int
argc
,
char
*
argv
[])
int
main
(
int
argc
,
char
*
argv
[])
{
parseCMDLine
(
argc
,
argv
);
...
...
@@ -349,7 +349,7 @@ int _tmain(int argc, char* argv[])
if
((
-
1
!=
g_depthStreamProfileIdx
)
&&
(
capture
.
retrieve
(
depthImage
,
CV_CAP_INTELPERC_DEPTH_MAP
)))
{
if
(
g_
closedDepth
Point
)
if
(
g_
showClosed
Point
)
{
double
minVal
=
0.0
;
double
maxVal
=
0.0
;
minMaxIdx
(
depthImage
,
&
minVal
,
&
maxVal
,
g_closedDepthPoint
);
...
...
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