| 200 | expAndNormalize( Q, tmp1 ); |
| 201 | } |
| 202 | VectorXs DenseCRF::currentMap( const MatrixXf & Q ) const{ |
| 203 | VectorXs r(Q.cols()); |
| 204 | // Find the map |
| 205 | for( int i=0; i<N_; i++ ){ |
| 206 | int m; |
| 207 | Q.col(i).maxCoeff( &m ); |
| 208 | r[i] = m; |
| 209 | } |
| 210 | return r; |
| 211 | } |
| 212 | |
| 213 | // Compute the KL-divergence of a set of marginals |
| 214 | double DenseCRF::klDivergence( const MatrixXf & Q ) const { |
no test coverage detected