diff --git a/modules/core/test/image-with-dataset/testColorConversion.cpp b/modules/core/test/image-with-dataset/testColorConversion.cpp index d435c3fc10..581cabd550 100644 --- a/modules/core/test/image-with-dataset/testColorConversion.cpp +++ b/modules/core/test/image-with-dataset/testColorConversion.cpp @@ -885,7 +885,8 @@ TEST_CASE("OpenCV Mat <==> vpImage conversion", "[image_conversion]") } #endif -static void col2im(const std::vector &buffer, vpImage &I_Bayer_8U) +#if (VISP_HAVE_DATASET_VERSION >= 0x030500) +void col2im(const std::vector &buffer, vpImage &I_Bayer_8U) { for (unsigned int i = 0; i < I_Bayer_8U.getHeight(); i++) { for (unsigned int j = 0; j < I_Bayer_8U.getWidth(); j++) { @@ -902,6 +903,7 @@ static void col2im(const std::vector &buffer, vpImage &I_Bay } } } +#endif static void convertTo(const vpImage &I_RGBA_16U, vpImage &I_RGBA_8U, int divisor = 1 << (12 - 8)) {