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
a865876c
Commit
a865876c
authored
Sep 13, 2016
by
matze
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added CV_UNUSED to not used variable when build without SSE2 support.
parent
aaa25546
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
3 deletions
+8
-3
contours.cpp
modules/imgproc/src/contours.cpp
+8
-3
No files found.
modules/imgproc/src/contours.cpp
View file @
a865876c
...
...
@@ -1390,6 +1390,8 @@ inline int findStartContourPoint(uchar *src_data, CvSize img_size, int j, bool h
j
+=
16
;
}
}
#else
CV_UNUSED
(
haveSIMD
);
#endif
for
(;
j
<
img_size
.
width
&&
!
src_data
[
j
];
++
j
)
;
...
...
@@ -1437,6 +1439,8 @@ inline int findEndContourPoint(uchar *src_data, CvSize img_size, int j, bool hav
j
+=
16
;
}
}
#else
CV_UNUSED
(
haveSIMD
);
#endif
for
(;
j
<
img_size
.
width
&&
src_data
[
j
];
++
j
)
;
...
...
@@ -1466,6 +1470,7 @@ icvFindContoursInInterval( const CvArr* src,
int
lower_total
;
int
upper_total
;
int
all_total
;
bool
haveSIMD
=
false
;
CvSeq
*
runs
;
CvLinkedRunPoint
tmp
;
...
...
@@ -1496,7 +1501,7 @@ icvFindContoursInInterval( const CvArr* src,
if
(
contourHeaderSize
<
(
int
)
sizeof
(
CvContour
))
CV_Error
(
CV_StsBadSize
,
"Contour header size must be >= sizeof(CvContour)"
);
#if CV_SSE2
bool
haveSIMD
=
cv
::
checkHardwareSupport
(
CPU_SSE2
);
haveSIMD
=
cv
::
checkHardwareSupport
(
CPU_SSE2
);
#endif
storage00
.
reset
(
cvCreateChildMemStorage
(
storage
));
storage01
.
reset
(
cvCreateChildMemStorage
(
storage
));
...
...
@@ -1540,7 +1545,7 @@ icvFindContoursInInterval( const CvArr* src,
tmp_prev
->
next
=
(
CvLinkedRunPoint
*
)
CV_GET_WRITTEN_ELEM
(
writer
);
tmp_prev
=
tmp_prev
->
next
;
j
=
findEndContourPoint
(
src_data
,
img_size
,
j
+
1
,
haveSIMD
);
j
=
findEndContourPoint
(
src_data
,
img_size
,
j
+
1
,
haveSIMD
);
tmp
.
pt
.
x
=
j
-
1
;
CV_WRITE_SEQ_ELEM
(
tmp
,
writer
);
...
...
@@ -1573,7 +1578,7 @@ icvFindContoursInInterval( const CvArr* src,
tmp_prev
->
next
=
(
CvLinkedRunPoint
*
)
CV_GET_WRITTEN_ELEM
(
writer
);
tmp_prev
=
tmp_prev
->
next
;
j
=
findEndContourPoint
(
src_data
,
img_size
,
j
+
1
,
haveSIMD
);
j
=
findEndContourPoint
(
src_data
,
img_size
,
j
+
1
,
haveSIMD
);
tmp
.
pt
.
x
=
j
-
1
;
CV_WRITE_SEQ_ELEM
(
tmp
,
writer
);
...
...
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