• Home
  • Raw
  • Download

Lines Matching refs:ndisp

184     int ndisp = state->numberOfDisparities;  in icvFindStereoCorrespondenceBM_SSE2()  local
186 int lofs = MAX(ndisp - 1 + mindisp, 0); in icvFindStereoCorrespondenceBM_SSE2()
187 int rofs = -MIN(ndisp - 1 + mindisp, 0); in icvFindStereoCorrespondenceBM_SSE2()
189 int width1 = width - rofs - ndisp + 1; in icvFindStereoCorrespondenceBM_SSE2()
204 int cstep = (height + dy0 + dy1)*ndisp; in icvFindStereoCorrespondenceBM_SSE2()
210 hsad0 = (ushort*)cvAlignPtr(sad + ndisp + 1 + dy0*ndisp); in icvFindStereoCorrespondenceBM_SSE2()
211 htext = (int*)cvAlignPtr((int*)(hsad0 + (height+dy1)*ndisp) + wsz2 + 2); in icvFindStereoCorrespondenceBM_SSE2()
212 cbuf0 = (uchar*)cvAlignPtr(htext + height + wsz2 + 2 + dy0*ndisp); in icvFindStereoCorrespondenceBM_SSE2()
218 memset( hsad0 - dy0*ndisp, 0, (height + dy0 + dy1)*ndisp*sizeof(hsad0[0]) ); in icvFindStereoCorrespondenceBM_SSE2()
223 hsad = hsad0 - dy0*ndisp; cbuf = cbuf0 + (x + wsz2 + 1)*cstep - dy0*ndisp; in icvFindStereoCorrespondenceBM_SSE2()
227 … for( y = -dy0; y < height + dy1; y++, hsad += ndisp, cbuf += ndisp, lptr += sstep, rptr += sstep ) in icvFindStereoCorrespondenceBM_SSE2()
230 for( d = 0; d < ndisp; d++ ) in icvFindStereoCorrespondenceBM_SSE2()
253 const uchar* cbuf_sub = cbuf0 + ((x0 + wsz2 + 1) % (wsz + 1))*cstep - dy0*ndisp; in icvFindStereoCorrespondenceBM_SSE2()
254 uchar* cbuf = cbuf0 + ((x1 + wsz2 + 1) % (wsz + 1))*cstep - dy0*ndisp; in icvFindStereoCorrespondenceBM_SSE2()
255 hsad = hsad0 - dy0*ndisp; in icvFindStereoCorrespondenceBM_SSE2()
260 for( y = -dy0; y < height + dy1; y++, cbuf += ndisp, cbuf_sub += ndisp, in icvFindStereoCorrespondenceBM_SSE2()
261 hsad += ndisp, lptr += sstep, lptr_sub += sstep, rptr += sstep ) in icvFindStereoCorrespondenceBM_SSE2()
265 for( d = 0; d < ndisp; d += 16 ) in icvFindStereoCorrespondenceBM_SSE2()
290 for( d = 0; d < ndisp; d++ ) in icvFindStereoCorrespondenceBM_SSE2()
291 sad[d] = (ushort)(hsad0[d-ndisp*dy0]*(wsz2 + 2 - dy0)); in icvFindStereoCorrespondenceBM_SSE2()
293 hsad = hsad0 + (1 - dy0)*ndisp; in icvFindStereoCorrespondenceBM_SSE2()
294 for( y = 1 - dy0; y < wsz2; y++, hsad += ndisp ) in icvFindStereoCorrespondenceBM_SSE2()
295 for( d = 0; d < ndisp; d++ ) in icvFindStereoCorrespondenceBM_SSE2()
305 hsad = hsad0 + MIN(y + wsz2, height+dy1-1)*ndisp; in icvFindStereoCorrespondenceBM_SSE2()
306 hsad_sub = hsad0 + MAX(y - wsz2 - 1, -dy0)*ndisp; in icvFindStereoCorrespondenceBM_SSE2()
310 for( d = 0; d < ndisp; d += 8 ) in icvFindStereoCorrespondenceBM_SSE2()
357 for( d = 0; d < ndisp; d += 8 ) in icvFindStereoCorrespondenceBM_SSE2()
366 if( d < ndisp ) in icvFindStereoCorrespondenceBM_SSE2()
375 sad[ndisp] = sad[ndisp-2]; in icvFindStereoCorrespondenceBM_SSE2()
377 …dptr[y*dstep] = (short)(((ndisp - mind - 1 + mindisp)*256 + (d != 0 ? (p-n)*128/d : 0) + 15) >> 4); in icvFindStereoCorrespondenceBM_SSE2()
392 int ndisp = state->numberOfDisparities; in icvFindStereoCorrespondenceBM() local
394 int lofs = MAX(ndisp - 1 + mindisp, 0); in icvFindStereoCorrespondenceBM()
395 int rofs = -MIN(ndisp - 1 + mindisp, 0); in icvFindStereoCorrespondenceBM()
397 int width1 = width - rofs - ndisp + 1; in icvFindStereoCorrespondenceBM()
411 int cstep = (height+dy0+dy1)*ndisp; in icvFindStereoCorrespondenceBM()
416 hsad0 = (int*)cvAlignPtr(sad + ndisp + 1 + dy0*ndisp); in icvFindStereoCorrespondenceBM()
417 htext = (int*)cvAlignPtr((int*)(hsad0 + (height+dy1)*ndisp) + wsz2 + 2); in icvFindStereoCorrespondenceBM()
418 cbuf0 = (uchar*)cvAlignPtr(htext + height + wsz2 + 2 + dy0*ndisp); in icvFindStereoCorrespondenceBM()
424 memset( hsad0 - dy0*ndisp, 0, (height + dy0 + dy1)*ndisp*sizeof(hsad0[0]) ); in icvFindStereoCorrespondenceBM()
429 hsad = hsad0 - dy0*ndisp; cbuf = cbuf0 + (x + wsz2 + 1)*cstep - dy0*ndisp; in icvFindStereoCorrespondenceBM()
433 … for( y = -dy0; y < height + dy1; y++, hsad += ndisp, cbuf += ndisp, lptr += sstep, rptr += sstep ) in icvFindStereoCorrespondenceBM()
436 for( d = 0; d < ndisp; d++ ) in icvFindStereoCorrespondenceBM()
459 const uchar* cbuf_sub = cbuf0 + ((x0 + wsz2 + 1) % (wsz + 1))*cstep - dy0*ndisp; in icvFindStereoCorrespondenceBM()
460 uchar* cbuf = cbuf0 + ((x1 + wsz2 + 1) % (wsz + 1))*cstep - dy0*ndisp; in icvFindStereoCorrespondenceBM()
461 hsad = hsad0 - dy0*ndisp; in icvFindStereoCorrespondenceBM()
466 for( y = -dy0; y < height + dy1; y++, cbuf += ndisp, cbuf_sub += ndisp, in icvFindStereoCorrespondenceBM()
467 hsad += ndisp, lptr += sstep, lptr_sub += sstep, rptr += sstep ) in icvFindStereoCorrespondenceBM()
470 for( d = 0; d < ndisp; d++ ) in icvFindStereoCorrespondenceBM()
486 for( d = 0; d < ndisp; d++ ) in icvFindStereoCorrespondenceBM()
487 sad[d] = (int)(hsad0[d-ndisp*dy0]*(wsz2 + 2 - dy0)); in icvFindStereoCorrespondenceBM()
489 hsad = hsad0 + (1 - dy0)*ndisp; in icvFindStereoCorrespondenceBM()
490 for( y = 1 - dy0; y < wsz2; y++, hsad += ndisp ) in icvFindStereoCorrespondenceBM()
491 for( d = 0; d < ndisp; d++ ) in icvFindStereoCorrespondenceBM()
501 hsad = hsad0 + MIN(y + wsz2, height+dy1-1)*ndisp; in icvFindStereoCorrespondenceBM()
502 hsad_sub = hsad0 + MAX(y - wsz2 - 1, -dy0)*ndisp; in icvFindStereoCorrespondenceBM()
504 for( d = 0; d < ndisp; d++ ) in icvFindStereoCorrespondenceBM()
524 for( d = 0; d < ndisp; d++ ) in icvFindStereoCorrespondenceBM()
529 if( d < ndisp ) in icvFindStereoCorrespondenceBM()
538 sad[ndisp] = sad[ndisp-2]; in icvFindStereoCorrespondenceBM()
540 …dptr[y*dstep] = (short)(((ndisp - mind - 1 + mindisp)*256 + (d != 0 ? (p-n)*128/d : 0) + 15) >> 4); in icvFindStereoCorrespondenceBM()
560 int wsz, ndisp, mindisp, lofs, rofs; in cvFindStereoCorrespondenceBM() local
610 ndisp = state->numberOfDisparities; in cvFindStereoCorrespondenceBM()
614 lofs = MAX(ndisp - 1 + mindisp, 0); in cvFindStereoCorrespondenceBM()
615 rofs = -MIN(ndisp - 1 + mindisp, 0); in cvFindStereoCorrespondenceBM()
616 width1 = width - rofs - ndisp + 1; in cvFindStereoCorrespondenceBM()
625 bufSize0 = (ndisp + 2)*sizeof(int) + (height+wsz+2)*ndisp*sizeof(int) + in cvFindStereoCorrespondenceBM()
626 (height + wsz + 2)*sizeof(int) + (height+wsz+2)*ndisp*(wsz+1)*sizeof(uchar) + 256; in cvFindStereoCorrespondenceBM()