Skip to content

Commit

Permalink
Merge pull request #1542 from fspindle/fix_klt_module
Browse files Browse the repository at this point in the history
Fix build issue in klt module under windows
  • Loading branch information
fspindle authored Jan 17, 2025
2 parents 241053f + ebc2c74 commit 4d75711
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 1 deletion.
5 changes: 5 additions & 0 deletions modules/tracker/klt/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,11 @@
set(opt_incs "")
set(opt_libs "")

if(USE_NLOHMANN_JSON AND NOT VISP_HAVE_NLOHMANN_JSON_FROM_VTK)
get_target_property(_inc_dirs "nlohmann_json::nlohmann_json" INTERFACE_INCLUDE_DIRECTORIES)
list(APPEND opt_incs ${_inc_dirs})
endif()

# OpenCV
if(USE_OPENCV)
# On win32 since OpenCV 2.4.7 and on OSX with OpenCV 2.4.10 we cannot use OpenCV_LIBS to set ViSP 3rd party libraries.
Expand Down
2 changes: 1 addition & 1 deletion modules/tracker/klt/include/visp3/klt/vpKltOpencv.h
Original file line number Diff line number Diff line change
Expand Up @@ -267,7 +267,7 @@ class VISP_EXPORT vpKltOpencv
* However, it must be a positive integer.
*
* \param blockSize : Size of an average block for computing a derivative
* covariation matrix over each pixel neighborhood. Default value is set to 3.
* covariance matrix over each pixel neighborhood. Default value is set to 3.
*/
void setBlockSize(int blockSize) { m_blockSize = blockSize; }

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@
#include <visp3/visual_features/vpFeatureMomentDatabase.h>
#include <visp3/visual_features/vpFeatureMomentGravityCenter.h>
#include <visp3/visual_features/vpFeatureMomentGravityCenterNormalized.h>

BEGIN_VISP_NAMESPACE
/*!
* Computes interaction matrix for centered and normalized moment. Called
Expand Down

0 comments on commit 4d75711

Please sign in to comment.