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
29f9ddf7
Commit
29f9ddf7
authored
Apr 11, 2017
by
Alexander Alekhin
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #1110 from jexner:mslic-fix-uninitialized-int
parents
7494ceb3
5d14e0e6
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
4 deletions
+3
-4
slic.cpp
modules/ximgproc/src/slic.cpp
+3
-4
No files found.
modules/ximgproc/src/slic.cpp
View file @
29f9ddf7
...
...
@@ -279,6 +279,9 @@ void SuperpixelSLICImpl::initialize()
void
SuperpixelSLICImpl
::
iterate
(
int
num_iterations
)
{
// store total iterations
m_iterations
=
num_iterations
;
if
(
m_algorithm
==
SLICO
)
PerformSLICO
(
num_iterations
);
else
if
(
m_algorithm
==
SLIC
)
...
...
@@ -1373,10 +1376,6 @@ inline void SuperpixelSLICImpl::PerformMSLIC( const int& itrnum )
for
(
int
b
=
0
;
b
<
m_nr_channels
;
b
++
)
sigma
[
b
].
resize
(
m_numlabels
,
0
);
vector
<
float
>
sigmax
(
m_numlabels
,
0
);
vector
<
float
>
sigmay
(
m_numlabels
,
0
);
vector
<
int
>
clustersize
(
m_numlabels
,
0
);
Mat
distvec
(
m_height
,
m_width
,
CV_32F
);
const
float
xywt
=
(
m_region_size
/
m_ruler
)
*
(
m_region_size
/
m_ruler
);
...
...
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