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

Function sumAndNormalize

dependency/densecrf3d/src/densecrf.cpp:202–209  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

200 }
201}
202void sumAndNormalize( MatrixXf & out, const MatrixXf & in, const MatrixXf & Q ) {
203 out.resize( in.rows(), in.cols() );
204 for( int i=0; i<in.cols(); i++ ){
205 VectorXf b = in.col(i);
206 VectorXf q = Q.col(i);
207 out.col(i) = b.array().sum()*q - b;
208 }
209}
210MatrixXf DenseCRF::inference ( int n_iterations ) const {
211 MatrixXf Q( M_, N_ ), tmp1, unary( M_, N_ ), tmp2;
212 unary.fill(0);

Callers 1

gradientMethod · 0.70

Calls 6

resizeMethod · 0.45
rowsMethod · 0.45
colsMethod · 0.45
colMethod · 0.45
sumMethod · 0.45
arrayMethod · 0.45

Tested by

no test coverage detected