Commit 0965aa25 authored by Alexander Alekhin's avatar Alexander Alekhin

Merge pull request #626 from cbalint13:slic

parents 5eb8bf94 cf5224f5
......@@ -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)
*/
......
......@@ -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 )
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment