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
cf5224f5
Commit
cf5224f5
authored
Apr 06, 2016
by
Balint Cristian
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix issue #623 & doc image reference (ximgproc/slic).
parent
5eb8bf94
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
4 additions
and
3 deletions
+4
-3
superpixels_slic.png
modules/ximgproc/doc/pics/superpixels_slic.png
+0
-0
slic.hpp
modules/ximgproc/include/opencv2/ximgproc/slic.hpp
+1
-1
slic.cpp
modules/ximgproc/src/slic.cpp
+3
-2
No files found.
modules/ximgproc/doc/pics/s
lic-slico-kermit
.png
→
modules/ximgproc/doc/pics/s
uperpixels_slic
.png
View file @
cf5224f5
File moved
modules/ximgproc/include/opencv2/ximgproc/slic.hpp
View file @
cf5224f5
...
@@ -148,7 +148,7 @@ superpixel algorithm, which are: region_size and ruler. It preallocate some buff
...
@@ -148,7 +148,7 @@ superpixel algorithm, which are: region_size and ruler. It preallocate some buff
computing iterations over the given image. An example of SLIC versus SLICO is ilustrated in the
computing iterations over the given image. An example of SLIC versus SLICO is ilustrated in the
following picture.
following picture.
![image](pics/s
lic_slico_kermit
.png)
![image](pics/s
uperpixels_slic
.png)
*/
*/
...
...
modules/ximgproc/src/slic.cpp
View file @
cf5224f5
...
@@ -226,11 +226,12 @@ void SuperpixelSLICImpl::initialize()
...
@@ -226,11 +226,12 @@ void SuperpixelSLICImpl::initialize()
else
else
CV_Error
(
Error
::
StsInternal
,
"No such algorithm"
);
CV_Error
(
Error
::
StsInternal
,
"No such algorithm"
);
// update amount of labels now
m_numlabels
=
(
int
)
m_kseeds
[
0
].
size
();
// perturb seeds given edges
// perturb seeds given edges
if
(
perturbseeds
)
PerturbSeeds
(
edgemag
);
if
(
perturbseeds
)
PerturbSeeds
(
edgemag
);
// update amount of labels now
m_numlabels
=
(
int
)
m_kseeds
[
0
].
size
();
}
}
void
SuperpixelSLICImpl
::
iterate
(
int
num_iterations
)
void
SuperpixelSLICImpl
::
iterate
(
int
num_iterations
)
...
...
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