Lines Matching refs:k1
153 int i, j, count = end - start, k1 = 0, k2 = 0, d = var_count;
186 for( ii = k1-1; ii >= 0; ii-- )
205 k1 = MIN( k1+1, k );
206 k2 = MIN( k1, k-1 );
212 float CvKNearest::write_results( int k, int k1, int start, int end,
219 double inv_scale = 1./k1;
232 for( j = 0; j < k1; j++ )
241 for( j = 0; j < k1; j++ )
244 for( j = k1-1; j > 0; j-- )
259 for( j = 1; j <= k1; j++ )
260 if( j == k1 || sort_buf[j].i != sort_buf[j-1].i )
284 for( j = 0; j < k1; j++ )
293 for( j = 0; j < k1; j++ )
317 int i, count, count_scale, blk_count0, blk_count = 0, buf_sz, k1;
365 k1 = get_sample_count();
366 k1 = MIN( k1, k );
386 float r = write_results( k, k1, i, i + blk_count, neighbor_responses, dist,