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

Method currentMap

dependency/densecrf3d/src/densecrf.cpp:297–306  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

295 expAndNormalize( Q, tmp1 );
296}
297VectorXs DenseCRF::currentMap( const MatrixXf & Q ) const{
298 VectorXs r(Q.cols());
299 // Find the map
300 for( int i=0; i<N_; i++ ){
301 int m;
302 Q.col(i).maxCoeff( &m );
303 r[i] = m;
304 }
305 return r;
306}
307
308// Compute the KL-divergence of a set of marginals
309double DenseCRF::klDivergence( const MatrixXf & Q ) const {

Callers 1

mainFunction · 0.45

Calls 3

colsMethod · 0.45
maxCoeffMethod · 0.45
colMethod · 0.45

Tested by

no test coverage detected