Skip to content

Commit

Permalink
Update dependency to Eigen3
Browse files Browse the repository at this point in the history
  • Loading branch information
gnebehay committed Jul 5, 2015
1 parent c3cc8f6 commit d6facc1
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 4 deletions.
3 changes: 2 additions & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,13 @@ project(STRUCK)
cmake_minimum_required(VERSION 2.6)

find_package(OpenCV REQUIRED)
find_package(Eigen3 REQUIRED)

if(NOT CMAKE_BUILD_TYPE)
set(CMAKE_BUILD_TYPE Release CACHE STRING "Build type" FORCE)
endif()

INCLUDE_DIRECTORIES ( src/GraphUtils /usr/include/eigen2 ${OpenCV_INCLUDE_DIRS})
INCLUDE_DIRECTORIES ( src/GraphUtils ${OpenCV_INCLUDE_DIRS} ${EIGEN3_INCLUDE_DIR} )

add_executable(STRUCK
src/Config.cpp
Expand Down
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ STRUCK is part of the [Visual Object Tracking Repository](https://github.com/gne
which aims at providing a central repository for state-of-the-art tracking algorithms that are freely available.
The source code for this tracker was obtained from its [project website](http://www.samhare.net/research/struck/code)
and extended by a challenge mode.
Additionally, the code was updated to use Eigen3.
The following description was copied literally from the original author.

README
Expand Down
4 changes: 2 additions & 2 deletions src/Kernels.h
Original file line number Diff line number Diff line change
Expand Up @@ -75,8 +75,8 @@ class IntersectionKernel : public Kernel
public:
inline double Eval(const Eigen::VectorXd& x1, const Eigen::VectorXd& x2) const
{
return x1.cwise().min(x2).sum();
}
return x1.array().min(x2.array()).sum();
}

inline double Eval(const Eigen::VectorXd& x) const
{
Expand Down
2 changes: 1 addition & 1 deletion src/LaRank.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
#include "Rect.h"
#include "GraphUtils/GraphUtils.h"

#include <Eigen/Array>
#include <Eigen/Core>

#include <opencv/highgui.h>
static const int kTileSize = 30;
Expand Down

0 comments on commit d6facc1

Please sign in to comment.