MCPcopy Create free account
hub / github.com/HiLab-git/SimpleCRF / startInference

Method startInference

dependency/densecrf/src/densecrf.cpp:178–186  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

176 return r;
177}
178MatrixXf DenseCRF::startInference() const{
179 MatrixXf Q( M_, N_ );
180 Q.fill(0);
181
182 // Initialize using the unary energies
183 if( unary_ )
184 expAndNormalize( Q, -unary_->get() );
185 return Q;
186}
187void DenseCRF::stepInference( MatrixXf & Q, MatrixXf & tmp1, MatrixXf & tmp2 ) const{
188 tmp1.resize( Q.rows(), Q.cols() );
189 tmp1.fill(0);

Callers

nothing calls this directly

Calls 3

expAndNormalizeFunction · 0.70
fillMethod · 0.45
getMethod · 0.45

Tested by

no test coverage detected