Lines Matching refs:ehmm

179     hmm->u.ehmm = hmm + 1;  in icvCreate2DHMM()
215 cvFree( &(hmm->u.ehmm->u.state->mu) ); in icvRelease2DHMM()
216 cvFree( &(hmm->u.ehmm->u.state) ); in icvRelease2DHMM()
270 first_state = hmm->u.ehmm->u.state; in icvUniformImgSegm()
277 int index = (int)(hmm->u.ehmm[superstate].u.state - first_state); in icvUniformImgSegm()
281 … int state = (int)((j * hmm->u.ehmm[superstate].num_states)* inv_x); /* / obs_info->obs_x; */ in icvUniformImgSegm()
291 CvEHMMState* first_state = hmm->u.ehmm->u.state; in icvUniformImgSegm()
303 CvEHMM* ehmm = &(hmm->u.ehmm[i]); in icvUniformImgSegm()
304 col_per_state[i] = (float)obs_info->obs_x / ehmm->num_states; in icvUniformImgSegm()
321 CvEHMM* ehmm = &(hmm->u.ehmm[i]); in icvUniformImgSegm()
322 int index = ehmm->u.state - first_state; in icvUniformImgSegm()
326 for( j = 0; j < ehmm->num_states - 1; j++ ) in icvUniformImgSegm()
330 es_bound[ehmm->num_states - 1] = obs_info->obs_x; in icvUniformImgSegm()
334 for( j = 0; j < ehmm->num_states; j++ ) in icvUniformImgSegm()
393 CvEHMMState* first_state = hmm->u.ehmm->u.state; in icvInitMixSegm()
397 total += hmm->u.ehmm[i].num_states; in icvInitMixSegm()
612 total_states += hmm->u.ehmm[j].num_states; in icvEstimateObsProb()
675 hmm->u.ehmm[i].obsProb = tmp; in icvEstimateObsProb()
684 CvEHMM* ehmm = &( hmm->u.ehmm[i] ); in icvEstimateObsProb() local
688 ehmm->obsProb[j] = tmpf; in icvEstimateObsProb()
689 tmpf += ehmm->num_states * obs_info->obs_x; in icvEstimateObsProb()
711 CvEHMM* ehmm = &(hmm->u.ehmm[i]); in icvEstimateObsProb() local
712 CvEHMMState* state = ehmm->u.state; in icvEstimateObsProb()
715 for( j = 0; j < ehmm->num_states; j++ ) in icvEstimateObsProb()
720 max_mix *= ehmm->num_states; in icvEstimateObsProb()
741 CvEHMM* ehmm = &(hmm->u.ehmm[i]); in icvEstimateObsProb() local
742 CvEHMMState* state = ehmm->u.state; in icvEstimateObsProb()
745 int n_states = ehmm->num_states; in icvEstimateObsProb()
748 for( j = 0; j < ehmm->num_states; j++ ) in icvEstimateObsProb()
760 float* log_mp = max_mix > 1 ? log_mix_prob : ehmm->obsProb[j]; in icvEstimateObsProb()
831 cvbFastLog( mix_prob, ehmm->obsProb[j], obs_x * n_states ); in icvEstimateObsProb()
842 CvEHMM* ehmm = &(hmm->u.ehmm[i]); in icvEstimateObsProb() local
843 CvEHMMState* state = ehmm->u.state; in icvEstimateObsProb()
851 float* B = ehmm->obsProb[j]; in icvEstimateObsProb()
858 float* matr_line = B + k * ehmm->num_states; in icvEstimateObsProb()
860 for( m = 0; m < ehmm->num_states; m++ ) in icvEstimateObsProb()
891 CvEHMMState* first_state = hmm->u.ehmm->u.state; in icvEstimateTransProb()
900 … icvSetZero_32f( hmm->u.ehmm[i].transP , hmm->u.ehmm[i].num_states, hmm->u.ehmm[i].num_states ); in icvEstimateTransProb()
920 begin_ind = (int)(hmm->u.ehmm[superstate].u.state - first_state); in icvEstimateTransProb()
934 int transP_size = hmm->u.ehmm[superstate].num_states; in icvEstimateTransProb()
937 hmm->u.ehmm[superstate].transP[ state * transP_size + nextstate] += 1; in icvEstimateTransProb()
966 CvEHMM* ehmm = &(hmm->u.ehmm[k]); in icvEstimateTransProb() local
968 for( i = 0; i < ehmm->num_states; i++) in icvEstimateTransProb()
972 for( j = 0; j < ehmm->num_states; j++) in icvEstimateTransProb()
974 total += ehmm->transP[i*ehmm->num_states + j]; in icvEstimateTransProb()
979 for( j = 0; j < ehmm->num_states; j++) in icvEstimateTransProb()
981 ehmm->transP[i * ehmm->num_states + j] = in icvEstimateTransProb()
982 (ehmm->transP[i * ehmm->num_states + j]) ? in icvEstimateTransProb()
983 (float)log( ehmm->transP[i * ehmm->num_states + j] * inv_total) : -BIG_FLT ; in icvEstimateTransProb()
1010 CvEHMMState* state = hmm->u.ehmm[0].u.state; in icvMixSegmL2()
1284 CvEHMMState* first_state = hmm->u.ehmm->u.state; in icvEViterbi()
1306 CvEHMM* ehmm = &(hmm->u.ehmm[i]); in icvEViterbi() local
1313 icvViterbiSegmentation( ehmm->num_states, obs_info->obs_x, in icvEViterbi()
1314 ehmm->transP, ehmm->obsProb[j], 0, in icvEViterbi()
1339 int state = (int)(hmm->u.ehmm[superstate].u.state - first_state); in icvEViterbi()
1377 CvEHMMState* first_state = hmm->u.ehmm[0].u.state; in icvEstimateHMMStateParams()
1383 total+= hmm->u.ehmm[i].num_states; in icvEstimateHMMStateParams()