mirror of
https://github.com/opencv/opencv_contrib.git
synced 2025-10-24 20:01:12 +08:00
Fix issue #623 & doc image reference (ximgproc/slic).
This commit is contained in:
|
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
|
||||
following picture.
|
||||
|
||||

|
||||

|
||||
|
||||
*/
|
||||
|
||||
|
||||
@@ -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 )
|
||||
|
||||
Reference in New Issue
Block a user