Lines Matching defs:obs_x
76 obs->obs_x = num_obs.width;
264 float inv_x = 1.f/obs_info->obs_x;
279 for (j = 0; j < obs_info->obs_x; j++, counter++)
281 int state = (int)((j * hmm->u.ehmm[superstate].num_states)* inv_x); /* / obs_info->obs_x; */
304 col_per_state[i] = (float)obs_info->obs_x / ehmm->num_states;
330 es_bound[ehmm->num_states - 1] = obs_info->obs_x;
338 obs_info->state[row * obs_info->obs_x + 2 * k] = i;
339 obs_info->state[row * obs_info->obs_x + 2 * k + 1] = j + index;
347 memcpy( &(obs_info->state[m * obs_info->obs_x * 2]),
348 &(obs_info->state[row * obs_info->obs_x * 2]), obs_info->obs_x * 2 * sizeof(int) );
422 for (j = 0; j < obs->obs_x; j++, count++)
444 int num_obs = ( obs->obs_x ) * ( obs->obs_y );
618 int need_size = ( obs_info->obs_x * obs_info->obs_y * total_states * sizeof(float) +
624 buffer[2] = obs_info->obs_x;
633 int need_size = ( obs_info->obs_x * obs_info->obs_y * total_states * sizeof(float) +
645 buffer[2] = obs_info->obs_x;
660 if ( (obs_info->obs_x > (*obsx) ) || (obs_info->obs_y > (*obsy) ) )
689 tmpf += ehmm->num_states * obs_info->obs_x;
706 int obs_x = obs_info->obs_x;
724 max_size *= obs_x * vect_size;
759 float* obs = obs_info->obs + j * obs_x * vect_size;
774 for( n = 0; n < obs_x; n++, vect += vect_size, log_mp += n_states )
800 cvbFastExp( log_mix_prob, mix_prob, max_mix * obs_x * n_states );
804 for( n = 0; n < obs_x; n++, mp += n_states )
816 int ofs = -m*obs_x*n_states;
817 for( n = 0; n < obs_x; n++, mp += n_states )
831 cvbFastLog( mix_prob, ehmm->obsProb[j], obs_x * n_states );
849 int obs_index = j * obs_info->obs_x;
854 for( k = 0; k < obs_info->obs_x; k++ )
911 for (k = 0; k < info->obs_x; k++, counter++)
927 nextsuperstate = info->state[ 2*(counter + info->obs_x) ];
932 if (k < info->obs_x - 1)
1020 for (j = 0; j < info->obs_x; j++, counter++)
1062 for (j = 0; j < info->obs_x; j++, counter++)
1282 float inv_obs_x = 1.f / obs_info->obs_x;
1299 q[i][j] = (int*)cvAlloc( obs_info->obs_x * sizeof(int) );
1313 icvViterbiSegmentation( ehmm->num_states, obs_info->obs_x,
1315 _CV_LAST_STATE, &q[i][j], obs_info->obs_x,
1316 obs_info->obs_x, &max_gamma);
1336 for (j = 0; j < obs_info->obs_x; j++, counter++)
1402 int num_obs = info->obs_y * info->obs_x;
1430 int total_obs = info->obs_x * info->obs_y;