Пример #1
0
void BipartiteDenseCRF::runInference( int n_iterations, float ** prob, float relax ) {
	// Initialize using the unary energies
	startInference();
	for( int it=0; it<n_iterations; it++ )
		stepInference( relax );
	for( int k=0; k<2; k++ )
		prob[k] = dense_crfs_[k]->current_;
}
Пример #2
0
float* DenseCRF2D::binarySeg(int n_iterations, float relax){
	startInference();
	for( int it=0; it<n_iterations; it++ ){		
		zeroBorder();
		//CmShow::mulChannelMat(Mat(H_, W_, CV_32FC2, unary_), "C%d", 2);
		//waitKey(0);
		stepInference(relax);
	}
	return current_;
}
float* DenseCRF::runInference( int n_iterations, float relax ) {
	startInference();
	for( int it=0; it<n_iterations; it++ )
		stepInference(relax);
	return current_;
}