Skip to content

Commit

Permalink
Add optimizations
Browse files Browse the repository at this point in the history
  • Loading branch information
hgaiser committed Oct 22, 2014
1 parent e0a113b commit 0cf2a84
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion felz/src/segment-image.h
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ cv::Vec3b random_rgb(){
}

/// Difference between two pixels p1, p2 in image
static inline float diff(cv::Mat image, int p1, int p2) {
static inline float diff(const cv::Mat & image, int p1, int p2) {
if (image.channels() == 3) {
cv::Vec3f a = image.at<cv::Vec3f>(p1);
cv::Vec3f b = image.at<cv::Vec3f>(p2);
Expand Down
2 changes: 1 addition & 1 deletion objectness/Objectness/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ if (${CMAKE_COMPILER_IS_GNUCXX})
set(OPENMP_FLAG "-fopenmp -std=c++11 -ftree-vectorize")
endif (${CMAKE_COMPILER_IS_GNUCXX})

set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${OPENMP_FLAG} -g")
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${OPENMP_FLAG} -O3")

#add_executable(${PROJECT_NAME} Main.cpp CmFile.cpp CmShow.cpp DataSetVOC.cpp FilterTIG.cpp Objectness.cpp stdafx.cpp)
#target_link_libraries(${PROJECT_NAME} ${OpenCV_LIBRARIES} LIBLINEAR BLAS)
Expand Down

0 comments on commit 0cf2a84

Please sign in to comment.