Fix uninitialized iteration counter in MSLIC

pull/1110/head
jexner 8 years ago
parent a61a0cf40f
commit 46c3965a7f
  1. 3
      modules/ximgproc/src/slic.cpp

@ -278,6 +278,9 @@ void SuperpixelSLICImpl::initialize()
void SuperpixelSLICImpl::iterate( int num_iterations )
{
// store total iterations
m_iterations = num_iterations;
if( m_algorithm == SLICO )
PerformSLICO( num_iterations );
else if( m_algorithm == SLIC )

Loading…
Cancel
Save