Skip to content

Commit 46c3965

Browse files
committed
Fix uninitialized iteration counter in MSLIC
1 parent a61a0cf commit 46c3965

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

modules/ximgproc/src/slic.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -278,6 +278,9 @@ void SuperpixelSLICImpl::initialize()
278278

279279
void SuperpixelSLICImpl::iterate( int num_iterations )
280280
{
281+
// store total iterations
282+
m_iterations = num_iterations;
283+
281284
if( m_algorithm == SLICO )
282285
PerformSLICO( num_iterations );
283286
else if( m_algorithm == SLIC )

0 commit comments

Comments
 (0)