Skip to content

Commit

Permalink
removed alglib from vision
Browse files Browse the repository at this point in the history
  • Loading branch information
dimitris authored and dimitris committed Aug 30, 2016
1 parent 083109b commit a5b417e
Show file tree
Hide file tree
Showing 8 changed files with 928 additions and 978 deletions.
2 changes: 1 addition & 1 deletion chroma/src/chroma.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ void Chroma_processing::imageCb(const sensor_msgs::ImageConstPtr& msg)
//Blob detection
if(display)
{
detectBlobs(dif_rgb, rgb_rects, 15);
detectBlobs(dif_rgb, rgb_rects, 15, true);

Mat temp = dif_rgb.clone();
for(Rect rect: rgb_rects)
Expand Down
1 change: 0 additions & 1 deletion fusion/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,6 @@ aux_source_directory(src/ SRC_LIST)
include_directories(
include
/usr/include/
/usr/include/libalglib/
${catkin_INCLUDE_DIRS}
${OpenCV_INCLUDE_DIRS}
${Boost_INCLUDE_DIRS}
Expand Down
1 change: 0 additions & 1 deletion fusion/include/fusion.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@

using namespace std;
using namespace cv;
using namespace alglib;

#define DEPTH_MAX 6000.0 /**< Default maximum distance. Only use this for initialization. */
#define DEPTH_MIN 0.0 /**< Default minimum distance. Only use this for initialization. */
Expand Down
2 changes: 1 addition & 1 deletion fusion/src/fusion.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ void Fusion_processing::callback(const sensor_msgs::ImageConstPtr& chroma_msg, c
cv::threshold(fusion, fusion, 100, 255, THRESH_BINARY);

//Detect moving blobs
detectBlobs(fusion, fusion_rects, 15);
detectBlobs(fusion, fusion_rects, 15, true);

//Track blobs
track(fusion_rects, people);
Expand Down
2 changes: 0 additions & 2 deletions vision/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@ catkin_package(INCLUDE_DIRS include
include_directories(
include
/usr/include/
/usr/include/libalglib/
${OpenCV_INCLUDE_DIRS}
)

Expand All @@ -30,7 +29,6 @@ add_library(vision SHARED ${SOURCES})
target_link_libraries(${PROJECT_NAME}
${catkin_LIBRARIES}
${OpenCV_LIBRARIES}
alglib
)

install(DIRECTORY include/${PROJECT_NAME}/
Expand Down
11 changes: 3 additions & 8 deletions vision/include/vision.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -13,13 +13,9 @@
#include <opencv2/imgproc/imgproc.hpp>
#include <opencv2/highgui/highgui.hpp>

#include <stdafx.h>
#include <dataanalysis.h>


using namespace std;
using namespace cv;
using namespace alglib;
using namespace std;
using namespace cv;



Expand All @@ -41,7 +37,7 @@
};

//Detection and tracking of blobs
void detectBlobs(Mat& src, vector< Rect_<int> >& colour_areas, int range);
void detectBlobs(Mat& src, vector< Rect_<int> >& colour_areas, int range, bool detect_people);
void track(vector< Rect_<int> >& current, People& collection, int rank = 3, float threshold = 0.2);

//Depth estimation functions
Expand Down Expand Up @@ -71,7 +67,6 @@
void fixRects(vector< Rect_<int> >& rects, int screenW);
void depthToGray(Mat& src, Mat& dst, float min_depth, float max_depth);
void grayToDepth(Mat& src, Mat& dst, float max_depth);
kmeansreport clusterize(const vector<float>& vec, int clusters);


#endif
Loading

0 comments on commit a5b417e

Please sign in to comment.