From c40718ab6116d12e811f491c9926d4ab1bfe3845 Mon Sep 17 00:00:00 2001 From: Vadim Pisarevsky Date: Thu, 18 Oct 2012 14:41:26 +0400 Subject: [PATCH] fixed bug #2059 --- modules/imgproc/src/imgwarp.cpp | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/modules/imgproc/src/imgwarp.cpp b/modules/imgproc/src/imgwarp.cpp index a67099d46..932f5a08f 100644 --- a/modules/imgproc/src/imgwarp.cpp +++ b/modules/imgproc/src/imgwarp.cpp @@ -221,6 +221,18 @@ static const void* initInterTab2D( int method, bool fixpt ) } +static bool initAllInterTab2D() +{ + return initInterTab2D( INTER_LINEAR, false ) && + initInterTab2D( INTER_LINEAR, true ) && + initInterTab2D( INTER_CUBIC, false ) && + initInterTab2D( INTER_CUBIC, true ) && + initInterTab2D( INTER_LANCZOS4, false ) && + initInterTab2D( INTER_LANCZOS4, true ); +} + +static volatile bool doInitAllInterTab2D = initAllInterTab2D(); + template struct Cast { typedef ST type1;