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