Commit 29f9ddf7 authored by Alexander Alekhin's avatar Alexander Alekhin

Merge pull request #1110 from jexner:mslic-fix-uninitialized-int

parents 7494ceb3 5d14e0e6
......@@ -279,6 +279,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 )
......@@ -1373,10 +1376,6 @@ inline void SuperpixelSLICImpl::PerformMSLIC( const int& itrnum )
for( int b = 0; b < m_nr_channels; b++ )
sigma[b].resize(m_numlabels, 0);
vector<float> sigmax(m_numlabels, 0);
vector<float> sigmay(m_numlabels, 0);
vector<int> clustersize(m_numlabels, 0);
Mat distvec( m_height, m_width, CV_32F );
const float xywt = (m_region_size/m_ruler)*(m_region_size/m_ruler);
......
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