| 45 | float l2_norm_; |
| 46 | public: |
| 47 | CRFEnergy( DenseCRF & crf, const ObjectiveFunction & objective, int NIT, bool unary=1, bool pairwise=1, bool kernel=1 ):crf_(crf),objective_(objective),NIT_(NIT),unary_(unary),pairwise_(pairwise),kernel_(kernel),l2_norm_(0.f){ |
| 48 | initial_u_param_ = crf_.unaryParameters(); |
| 49 | initial_lbl_param_ = crf_.labelCompatibilityParameters(); |
| 50 | initial_knl_param_ = crf_.kernelParameters(); |
| 51 | } |
| 52 | void setL2Norm( float norm ) { |
| 53 | l2_norm_ = norm; |
| 54 | } |
nothing calls this directly
no test coverage detected