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

Method DenseKernel

dependency/densecrf3d/src/pairwise.cpp:117–125  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

115 }
116public:
117 DenseKernel(const MatrixXf & f, KernelType ktype, NormalizationType ntype):f_(f), ktype_(ktype), ntype_(ntype) {
118 if (ktype_ == DIAG_KERNEL) {
119 parameters_ = VectorXf::Ones( f.rows() );
120 }
121 else if( ktype == FULL_KERNEL ) {
122 parameters_ = MatrixXf::Identity( f.rows(), f.rows() );
123 }
124 initLattice( f );
125 }
126 virtual void apply( MatrixXf & out, const MatrixXf & Q ) const {
127 filter( out, Q, false );
128 }

Callers

nothing calls this directly

Calls 1

rowsMethod · 0.45

Tested by

no test coverage detected