Commit ab5f5d6c authored by Julian Exner's avatar Julian Exner

Fix uninitialized LSC weights

parent 58f7afcb
......@@ -1165,7 +1165,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