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

pull/626/head
Balint Cristian 9 years ago
parent 5eb8bf9402
commit cf5224f586
  1. 0
      modules/ximgproc/doc/pics/superpixels_slic.png
  2. 2
      modules/ximgproc/include/opencv2/ximgproc/slic.hpp
  3. 5
      modules/ximgproc/src/slic.cpp

Before

Width:  |  Height:  |  Size: 757 KiB

After

Width:  |  Height:  |  Size: 757 KiB

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

@ -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 )

Loading…
Cancel
Save