Skip to content

Commit

Permalink
Merge pull request #3 from SamFlt/opencv_includes
Browse files Browse the repository at this point in the history
add OpenCV includes for the vpConfig.h refactor
  • Loading branch information
fspindle committed Oct 26, 2023
2 parents 1ea95ea + 0051acc commit 34cf6e6
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 0 deletions.
4 changes: 4 additions & 0 deletions core/sample-vpImageConvert-6.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@
#include <visp3/core/vpImageConvert.h>
#include <visp3/io/vpImageIo.h>

#if defined(HAVE_OPENCV_IMGCODECS)
#include <opencv2/imgcodecs.hpp>
#endif

int main()
{
#if defined(VISP_HAVE_OPENCV) && defined(HAVE_OPENCV_IMGPROC) && defined(HAVE_OPENCV_IMGCODECS)
Expand Down
4 changes: 4 additions & 0 deletions core/sample-vpImageConvert-8.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@
#include <visp3/core/vpImageConvert.h>
#include <visp3/io/vpImageIo.h>

#if defined(HAVE_OPENCV_IMGCODECS)
#include <opencv2/imgcodecs.hpp>
#endif

int main()
{
#if defined(VISP_HAVE_OPENCV) && defined(HAVE_OPENCV_IMGPROC) && defined(HAVE_OPENCV_IMGCODECS)
Expand Down
5 changes: 5 additions & 0 deletions core/sample-vpImageConvert-9.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,11 @@
#include <visp3/core/vpImageConvert.h>
#include <visp3/io/vpImageIo.h>


#if defined(HAVE_OPENCV_IMGCODECS)
#include <opencv2/imgcodecs.hpp>
#endif

int main()
{
#if defined(VISP_HAVE_OPENCV) && defined(HAVE_OPENCV_IMGPROC) && defined(HAVE_OPENCV_IMGCODECS)
Expand Down

0 comments on commit 34cf6e6

Please sign in to comment.