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

Method compute

dependency/densecrf/src/permutohedral.cpp:596–604  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

594}
595#endif
596void Permutohedral::compute ( MatrixXf & out, const MatrixXf & in, bool reverse ) const
597{
598 if( out.cols() != in.cols() || out.rows() != in.rows() )
599 out = 0*in;
600 if( in.rows() <= 2 )
601 seqCompute( out.data(), in.data(), in.rows(), reverse );
602 else
603 sseCompute( out.data(), in.data(), in.rows(), reverse );
604}
605MatrixXf Permutohedral::compute ( const MatrixXf & in, bool reverse ) const
606{
607 MatrixXf r;

Callers 4

initLatticeMethod · 0.45
filterMethod · 0.45
featureGradientMethod · 0.45
gradientMethod · 0.45

Calls 3

colsMethod · 0.45
rowsMethod · 0.45
dataMethod · 0.45

Tested by 1

gradientMethod · 0.36