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
77e22261
Commit
77e22261
authored
Jun 18, 2015
by
Vadim Pisarevsky
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #269 from berak/patch-3
remove floor call
parents
03870af3
01293e0e
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
seeds.cpp
modules/ximgproc/src/seeds.cpp
+2
-2
No files found.
modules/ximgproc/src/seeds.cpp
View file @
77e22261
...
...
@@ -273,8 +273,8 @@ void SuperpixelSEEDSImpl::initialize(int num_superpixels, int num_levels)
parent_pre_init
.
resize
(
seeds_nr_levels
);
nr_wh
.
resize
(
2
*
seeds_nr_levels
);
int
level
=
0
;
int
nr_seeds_w
=
(
int
)
floor
(
width
/
seeds_w
);
int
nr_seeds_h
=
(
int
)
floor
(
height
/
seeds_h
);
int
nr_seeds_w
=
(
width
/
seeds_w
);
int
nr_seeds_h
=
(
height
/
seeds_h
);
nr_wh
[
2
*
level
]
=
nr_seeds_w
;
nr_wh
[
2
*
level
+
1
]
=
nr_seeds_h
;
parent_mat
.
push_back
(
Mat
(
nr_seeds_h
,
nr_seeds_w
,
CV_32SC1
));
...
...
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