File tree Expand file tree Collapse file tree 1 file changed +3
-4
lines changed Expand file tree Collapse file tree 1 file changed +3
-4
lines changed Original file line number Diff line number Diff line change @@ -279,6 +279,9 @@ void SuperpixelSLICImpl::initialize()
279
279
280
280
void SuperpixelSLICImpl::iterate ( int num_iterations )
281
281
{
282
+ // store total iterations
283
+ m_iterations = num_iterations;
284
+
282
285
if ( m_algorithm == SLICO )
283
286
PerformSLICO ( num_iterations );
284
287
else if ( m_algorithm == SLIC )
@@ -1373,10 +1376,6 @@ inline void SuperpixelSLICImpl::PerformMSLIC( const int& itrnum )
1373
1376
for ( int b = 0 ; b < m_nr_channels; b++ )
1374
1377
sigma[b].resize (m_numlabels, 0 );
1375
1378
1376
- vector<float > sigmax (m_numlabels, 0 );
1377
- vector<float > sigmay (m_numlabels, 0 );
1378
- vector<int > clustersize (m_numlabels, 0 );
1379
-
1380
1379
Mat distvec ( m_height, m_width, CV_32F );
1381
1380
1382
1381
const float xywt = (m_region_size/m_ruler)*(m_region_size/m_ruler);
You can’t perform that action at this time.
0 commit comments