• Home
  • Raw
  • Download

Lines Matching refs:imgW

94     int     imgW = size.width;  in icvFindStereoCorrespondenceByBirchfieldDP()  local
107 uchar* dsi = (uchar*)cvAlloc(sizeof(uchar)*imgW*dispH); in icvFindStereoCorrespondenceByBirchfieldDP()
108 uchar* edges = (uchar*)cvAlloc(sizeof(uchar)*imgW*imgH); in icvFindStereoCorrespondenceByBirchfieldDP()
109 _CvDPCell* cells = (_CvDPCell*)cvAlloc(sizeof(_CvDPCell)*imgW*MAX(dispH,(imgH+1)/2)); in icvFindStereoCorrespondenceByBirchfieldDP()
110 _CvRightImData* rData = (_CvRightImData*)cvAlloc(sizeof(_CvRightImData)*imgW); in icvFindStereoCorrespondenceByBirchfieldDP()
120 for( j = 1; j < imgW; j++ ) in icvFindStereoCorrespondenceByBirchfieldDP()
134 dsi += imgW; in icvFindStereoCorrespondenceByBirchfieldDP()
136 for( j = i - 1; j < imgW - 1; j++ ) in icvFindStereoCorrespondenceByBirchfieldDP()
153 dsi -= (maxDisparity+1)*imgW; in icvFindStereoCorrespondenceByBirchfieldDP()
158 edges[y*imgW] = edges[y*imgW+1] = edges[y*imgW+2] = 2; in icvFindStereoCorrespondenceByBirchfieldDP()
159 edges[y*imgW+imgW-1] = edges[y*imgW+imgW-2] = edges[y*imgW+imgW-3] = 1; in icvFindStereoCorrespondenceByBirchfieldDP()
160 for( j = 3; j < imgW-4; j++ ) in icvFindStereoCorrespondenceByBirchfieldDP()
162 edges[y*imgW+j] = 0; in icvFindStereoCorrespondenceByBirchfieldDP()
167 edges[y*imgW+j] |= 1; in icvFindStereoCorrespondenceByBirchfieldDP()
172 edges[y*imgW+j] |= 2; in icvFindStereoCorrespondenceByBirchfieldDP()
178 for( x = 0; x < imgW; x++ ) in icvFindStereoCorrespondenceByBirchfieldDP()
191 for( x = 1; x < imgW; x++ ) in icvFindStereoCorrespondenceByBirchfieldDP()
194 uchar* _edges = edges + y*imgW + x; in icvFindStereoCorrespondenceByBirchfieldDP()
200 int s = dsi[d*imgW+x]; in icvFindStereoCorrespondenceByBirchfieldDP()
275 if( min_val > CELL(i,imgW-1).sum ) in icvFindStereoCorrespondenceByBirchfieldDP()
278 min_val = CELL(i,imgW-1).sum; in icvFindStereoCorrespondenceByBirchfieldDP()
283 for( x = imgW - 1; x > 0; x-- ) in icvFindStereoCorrespondenceByBirchfieldDP()
306 for( x = 0; x < imgW; x++ ) in icvFindStereoCorrespondenceByBirchfieldDP()
318 for( x = 0; x < imgW; x++ ) in icvFindStereoCorrespondenceByBirchfieldDP()
327 edges[y*imgW+x] |= 4; in icvFindStereoCorrespondenceByBirchfieldDP()
328 edges[(y+1)*imgW+x] |= 4; in icvFindStereoCorrespondenceByBirchfieldDP()
329 edges[(y-1)*imgW+x] |= 4; in icvFindStereoCorrespondenceByBirchfieldDP()
339 prev = edges[y*imgW]; in icvFindStereoCorrespondenceByBirchfieldDP()
340 for( x = 1; x < imgW - 1; x++ ) in icvFindStereoCorrespondenceByBirchfieldDP()
342 curr = edges[y*imgW+x]; in icvFindStereoCorrespondenceByBirchfieldDP()
345 !( edges[y*imgW+x+1] & 4 ) ) ) in icvFindStereoCorrespondenceByBirchfieldDP()
347 edges[y*imgW+x] -= 4; in icvFindStereoCorrespondenceByBirchfieldDP()
354 for( x = 0; x < imgW; x++ ) in icvFindStereoCorrespondenceByBirchfieldDP()
364 reliabilities[i*imgW+x] = s; in icvFindStereoCorrespondenceByBirchfieldDP()
370 for( x = 0; x < imgW; x++ ) in icvFindStereoCorrespondenceByBirchfieldDP()
375 if( reliabilities[y*imgW+x] >= param4 && !(edges[y*imgW+x] & 4) && in icvFindStereoCorrespondenceByBirchfieldDP()
382 if( ( edges[i*imgW+x] & 4 ) || in icvFindStereoCorrespondenceByBirchfieldDP()
384 reliabilities[i*imgW+x] >= param3 ) || in icvFindStereoCorrespondenceByBirchfieldDP()
385 ( reliabilities[y*imgW+x] < param5 && in icvFindStereoCorrespondenceByBirchfieldDP()
394 if( ( edges[i*imgW+x] & 4 ) || in icvFindStereoCorrespondenceByBirchfieldDP()
396 reliabilities[i*imgW+x] >= param3 ) || in icvFindStereoCorrespondenceByBirchfieldDP()
397 ( reliabilities[y*imgW+x] < param5 && in icvFindStereoCorrespondenceByBirchfieldDP()
414 for( x = 1; x < imgW; x++ ) in icvFindStereoCorrespondenceByBirchfieldDP()
417 for( ; x < imgW && dest[y*widthStep+x] == dest[y*widthStep+x-1]; x++ ); in icvFindStereoCorrespondenceByBirchfieldDP()
421 reliabilities[y*imgW+i] = s; in icvFindStereoCorrespondenceByBirchfieldDP()
429 for( x = 0; x < imgW; x++ ) in icvFindStereoCorrespondenceByBirchfieldDP()
432 if( reliabilities[y*imgW+x] >= param4 && !(edges[y*imgW+x] & 1) && in icvFindStereoCorrespondenceByBirchfieldDP()
439 if( (edges[y*imgW+i] & 1) || in icvFindStereoCorrespondenceByBirchfieldDP()
441 reliabilities[y*imgW+i] >= param3 ) || in icvFindStereoCorrespondenceByBirchfieldDP()
442 ( reliabilities[y*imgW+x] < param5 && in icvFindStereoCorrespondenceByBirchfieldDP()
449 for( i = x + 1; i < imgW; i++ ) in icvFindStereoCorrespondenceByBirchfieldDP()
451 if( (edges[y*imgW+i] & 1) || in icvFindStereoCorrespondenceByBirchfieldDP()
453 reliabilities[y*imgW+i] >= param3 ) || in icvFindStereoCorrespondenceByBirchfieldDP()
454 ( reliabilities[y*imgW+x] < param5 && in icvFindStereoCorrespondenceByBirchfieldDP()