| 176 | return r; |
| 177 | } |
| 178 | MatrixXf 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 | } |
| 187 | void DenseCRF::stepInference( MatrixXf & Q, MatrixXf & tmp1, MatrixXf & tmp2 ) const{ |
| 188 | tmp1.resize( Q.rows(), Q.cols() ); |
| 189 | tmp1.fill(0); |
nothing calls this directly
no test coverage detected