Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
O
opencv_contrib
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_contrib
Commits
905b362f
Commit
905b362f
authored
Aug 16, 2017
by
Alexander Alekhin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ximgproc: eliminate per-pixel manual loop
fixes warning on MacOSX Xcode 8.3.3
parent
54d65f9d
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
8 deletions
+1
-8
selectivesearchsegmentation.cpp
modules/ximgproc/src/selectivesearchsegmentation.cpp
+1
-8
No files found.
modules/ximgproc/src/selectivesearchsegmentation.cpp
View file @
905b362f
...
...
@@ -163,14 +163,7 @@ namespace cv {
for
(
int
r
=
0
;
r
<
nb_segs
;
r
++
)
{
// Generate mask
Mat
mask
=
Mat
(
img
.
rows
,
img
.
cols
,
CV_8UC1
);
int
*
regions_data
=
(
int
*
)
regions
.
data
;
char
*
mask_data
=
(
char
*
)
mask
.
data
;
for
(
unsigned
int
x
=
0
;
x
<
regions
.
total
();
x
++
)
{
mask_data
[
x
]
=
regions_data
[
x
]
==
r
?
255
:
0
;
}
Mat
mask
=
regions
==
r
;
// Compute histogram for each channels
float
tt
=
0
;
...
...
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