Skip to content

Commit

Permalink
Merge pull request #1314 from fspindle/fix_ros2_jenkins
Browse files Browse the repository at this point in the history
Fix issue detected by ros2 jenkins ci
  • Loading branch information
fspindle authored Jan 24, 2024
2 parents 4851925 + 2d6eb6c commit d016c3e
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion modules/core/test/image-with-dataset/testColorConversion.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -885,7 +885,8 @@ TEST_CASE("OpenCV Mat <==> vpImage conversion", "[image_conversion]")
}
#endif

static void col2im(const std::vector<uint8_t> &buffer, vpImage<uint8_t> &I_Bayer_8U)
#if (VISP_HAVE_DATASET_VERSION >= 0x030500)
void col2im(const std::vector<uint8_t> &buffer, vpImage<uint8_t> &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++) {
Expand All @@ -902,6 +903,7 @@ static void col2im(const std::vector<uint16_t> &buffer, vpImage<uint16_t> &I_Bay
}
}
}
#endif

static void convertTo(const vpImage<uint16_t> &I_RGBA_16U, vpImage<vpRGBa> &I_RGBA_8U, int divisor = 1 << (12 - 8))
{
Expand Down

0 comments on commit d016c3e

Please sign in to comment.