1
0
mirror of https://github.com/opencv/opencv_contrib.git synced 2025-10-24 03:03:35 +08:00

Fix issue #623 & doc image reference (ximgproc/slic).

This commit is contained in:
Balint Cristian
2016-04-06 08:38:09 +03:00
parent 5eb8bf9402
commit cf5224f586
3 changed files with 4 additions and 3 deletions

View File

Before

Width:  |  Height:  |  Size: 757 KiB

After

Width:  |  Height:  |  Size: 757 KiB

View File

@@ -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
following picture.
![image](pics/slic_slico_kermit.png)
![image](pics/superpixels_slic.png)
*/

View File

@@ -226,11 +226,12 @@ void SuperpixelSLICImpl::initialize()
else
CV_Error( Error::StsInternal, "No such algorithm" );
// update amount of labels now
m_numlabels = (int)m_kseeds[0].size();
// perturb seeds given edges
if ( perturbseeds ) PerturbSeeds( edgemag );
// update amount of labels now
m_numlabels = (int)m_kseeds[0].size();
}
void SuperpixelSLICImpl::iterate( int num_iterations )