INNER CODE UNIT · C++
tmp1
lucasb-eyer/pydensecrf · pydensecrf/densecrf/src/densecrf.cpp:123
tmp1 = -unary;
for( unsigned int k=0; k<pairwise_.size(); k++ ) {
pairwise_[k]->apply( tmp2, Q );
tmp1 -= tmp2;
}
expAndNormalize( Q, tmp1 );
}
return Q;
}
VectorXs DenseCRF::map ( int n_iterations ) const {
// Run inference
MatrixXf Q = inference( n_iterations );
// Find the map
return currentMap( Q );
}
///////////////////
///// Debug /////
///////////////////