Commit d8be3fe9 authored by Alexander Alekhin's avatar Alexander Alekhin

Merge pull request #1078 from jexner:lsc-initialize-weights-fix

parents 0ed62f35 ab5f5d6c
......@@ -1183,7 +1183,7 @@ inline void SuperpixelLSCImpl::GetFeatureSpace()
}
// compute m_W normalization array
m_W = Mat( m_height, m_width, CV_32F );
m_W = Mat( m_height, m_width, CV_32F, 0.0f );
parallel_for_( Range(0, m_width), FeatureSpaceWeights( m_chvec, &m_W,
sigmaX1, sigmaX2, sigmaY1, sigmaY2, sigmaC1, sigmaC2,
m_nr_channels, m_chvec_max, m_dist_coeff, m_color_coeff,
......
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