Lines Matching refs:imgA
86 void bim_ToneDownBGSupp_BGGreyLevelOutside( struct bim_UInt8Image* imgA,
113 rectIxXMaxL = bbs_min( rectXMaxL, ( int16 ) imgA->widthE );
116 rectIxYMaxL = bbs_min( rectYMaxL, ( int16 ) imgA->heightE );
129 imgPtrL = &(imgA->arrE.arrPtrE[ 0 ]);
130 ctrL += rectIxYMinL * imgA->widthE;
131 imgPtrMaxL = imgPtrL + rectIxYMinL * imgA->widthE;
140 ctrL += ( imgA->heightE - rectIxYMaxL ) * imgA->widthE;
142 imgPtrL = &(imgA->arrE.arrPtrE[ rectIxYMaxL * imgA->widthE ]);
143 imgPtrMaxL = &(imgA->arrE.arrPtrE[ imgA->heightE * imgA->widthE ]);
154 imgPtrL = &(imgA->arrE.arrPtrE[ rectIxYMinL * imgA->widthE ]);
162 if( ( int32 )imgA->widthE > ( int32 )rectIxXMaxL )
164 ctrL += ( int32 )imgA->widthE - ( int32 )rectIxXMaxL;
167 for ( iL = rectIxXMaxL; iL < ( int16 ) imgA->widthE; iL++ )
188 void bim_ToneDownBGSupp_BGGreyLevelContour( struct bim_UInt8Image* imgA,
219 rectIxXMaxL = bbs_min( rectXMaxL, ( int16 ) imgA->widthE );
222 rectIxYMaxL = bbs_min( rectYMaxL, ( int16 ) imgA->heightE );
237 if ( rectIxXMaxL > ( int16 ) imgA->widthE )
239 shiftXRectL = rectIxXMaxL - ( int16 ) imgA->widthE;
252 if ( rectIxYMaxL > ( int16 ) imgA->widthE )
254 shiftXRectL = rectIxYMaxL - ( int16 ) imgA->widthE;
265 rectIxXMaxL = bbs_min( rectXMaxL, ( int16 ) imgA->widthE );
267 rectIxYMaxL = bbs_min( rectYMaxL, ( int16 ) imgA->heightE );
276 imgPtr0L = &(imgA->arrE.arrPtrE[ rectIxYMinL * imgA->widthE ]);
277 imgPtr1L = &(imgA->arrE.arrPtrE[ ( rectIxYMaxL - 1 ) * imgA->widthE ]);
283 imgPtr0L = &(imgA->arrE.arrPtrE[ ( rectIxYMinL + 1 ) * imgA->widthE + rectIxXMinL ]);
284 imgPtr1L = &(imgA->arrE.arrPtrE[ ( rectIxYMinL + 1 ) * imgA->widthE + rectIxXMaxL - 1 ]);
289 imgPtr0L += imgA->widthE;
290 imgPtr1L += imgA->widthE;
308 void bim_ToneDownBGSupp_suppress( struct bim_UInt8Image* imgA,
361 rectIxXMinL = bbs_min( rectIxXMinL, ( int16 ) imgA->widthE );
362 rectIxXMaxL = bbs_min( rectXMaxL, ( int16 ) imgA->widthE );
366 rectIxYMinL = bbs_min( rectIxYMinL, ( int16 ) imgA->heightE );
367 rectIxYMaxL = bbs_min( rectYMaxL, ( int16 ) imgA->heightE );
371 if ( ( imgA->heightE == 0 ) || ( imgA->widthE == 0 ) ) return;
375 bim_ToneDownBGSupp_BGGreyLevelContour( imgA, rectA, &meanBGGreyLevelL );
396 maxROIReachL = bbs_max( imgA->widthE, imgA->heightE );
426 rOIReachIxXMinL = bbs_min( rOIReachIxXMinL, ( int16 ) imgA->widthE );
427 rOIReachIxXMaxL = bbs_min( rOIReachXMaxL, ( int16 ) imgA->widthE );
431 rOIReachIxYMinL = bbs_min( rOIReachIxYMinL, ( int16 ) imgA->heightE );
432 rOIReachIxYMaxL = bbs_min( rOIReachYMaxL, ( int16 ) imgA->heightE );
440 imgPtrL = &( imgA->arrE.arrPtrE[ jL * imgA->widthE ] );
441 for ( iL = 0; iL <= ( int16 ) imgA->widthE; iL++ )
446 for ( jL = rOIReachYMaxL; jL < ( int16 ) imgA->heightE; jL++ )
448 imgPtrL = &( imgA->arrE.arrPtrE[ jL * imgA->widthE ] );
449 for ( iL = 0; iL <= ( int16 ) imgA->widthE; iL++ )
456 imgPtrL = &( imgA->arrE.arrPtrE[ jL * imgA->widthE ] );
461 for ( iL = rOIReachXMaxL; iL < ( int16 ) imgA->widthE; iL++ )
476 imgPtrL = &( imgA->arrE.arrPtrE[ jL * imgA->widthE ] );
480 ridgeIxRightL = bbs_min( ( int16 ) imgA->widthE - 1, rOIReachXMaxL - 1 - ( jL - rOIReachYMinL ) );
498 imgPtrL = &( imgA->arrE.arrPtrE[ jL * imgA->widthE ] );
502 ridgeIxRightL = bbs_min( ( int16 ) imgA->widthE - 1, rOIReachXMaxL - 1 - ( rOIReachYMaxL - 1 - jL ) );
515 imgPtrL = &( imgA->arrE.arrPtrE[ jL * imgA->widthE ] );