Skip to content

Commit

Permalink
Fix issue detected by ros2 jenkins
Browse files Browse the repository at this point in the history
- see https://build.ros2.org/job/Idev__visp__ubuntu_jammy_amd64/88/
- fix unused functions in testColorConversion.cpp when isolated build that doesn't use dataset
  • Loading branch information
fspindle committed Jan 24, 2024
1 parent 4851925 commit 2d6eb6c
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 2d6eb6c

Please sign in to comment.