mirror of
https://github.com/opencv/opencv.git
synced 2025-01-18 06:03:15 +08:00
added call to IPP's ippiDistanceTransform_5x5_8u32f_C1R (by Alexander Kapustin)
This commit is contained in:
parent
bb15e735b8
commit
8b6afd697d
@ -779,6 +779,16 @@ cvDistTransform( const void* srcarr, void* dstarr,
|
||||
|
||||
if( !labels )
|
||||
{
|
||||
#if defined (HAVE_IPP) && (IPP_VERSION_MAJOR >= 7)
|
||||
if( maskSize == CV_DIST_MASK_5 )
|
||||
{
|
||||
IppiSize roi = { src->cols, src->rows };
|
||||
if( ippiDistanceTransform_5x5_8u32f_C1R(
|
||||
src->data.ptr, src->step,
|
||||
dst->data.fl, dst->step, roi, _mask) >= 0 )
|
||||
return;
|
||||
}
|
||||
#endif
|
||||
CvDistTransFunc func = maskSize == CV_DIST_MASK_3 ?
|
||||
icvDistanceTransform_3x3_C1R :
|
||||
icvDistanceTransform_5x5_C1R;
|
||||
|
Loading…
Reference in New Issue
Block a user