Skip to content
Snippets Groups Projects
Commit e1829b2d authored by Nicolas Pope's avatar Nicolas Pope
Browse files

Merge branch 'feature/reducedep' into 'master'

Reduce OpenCV dependencies

See merge request nicolas.pope/ftl!231
parents f571dd7b bef2deef
No related branches found
No related tags found
1 merge request!231Reduce OpenCV dependencies
Pipeline #19361 passed
Showing
with 34 additions and 8 deletions
......@@ -12,6 +12,7 @@
#include <opencv2/core.hpp>
#include <opencv2/aruco.hpp>
#include <opencv2/core/eigen.hpp>
#include <opencv2/opencv.hpp>
#include <algorithm>
#include <numeric>
......
......@@ -3,6 +3,9 @@
#include "screen.hpp"
#include <nanogui/glutil.h>
#include <opencv2/imgproc.hpp>
#include <opencv2/imgcodecs.hpp>
#include <ftl/operators/antialiasing.hpp>
#define LOGURU_REPLACE_GLOG 1
......
#ifndef _FTL_GUI_GLTEXTURE_HPP_
#define _FTL_GUI_GLTEXTURE_HPP_
#include <opencv2/opencv.hpp>
#include <opencv2/core/mat.hpp>
namespace ftl {
namespace gui {
......
......@@ -28,7 +28,7 @@
#include <thread>
#include <chrono>
#include <opencv2/opencv.hpp>
//#include <opencv2/opencv.hpp>
#include <ftl/net/universe.hpp>
#include <ftl/operators/smoothing.hpp>
......
......@@ -3,7 +3,7 @@
#include <ftl/net/universe.hpp>
#include <nlohmann/json.hpp>
#include <opencv2/opencv.hpp>
#include <opencv2/core/mat.hpp>
#include <string>
namespace ftl {
......
#ifndef _FTL_CODECS_DECODER_HPP_
#define _FTL_CODECS_DECODER_HPP_
#include <opencv2/opencv.hpp>
//#include <opencv2/opencv.hpp>
#include <opencv2/core/cuda.hpp>
#include <opencv2/core/cuda_stream_accessor.hpp>
......
......@@ -2,7 +2,7 @@
#define _FTL_CODECS_ENCODER_HPP_
#include <ftl/cuda_util.hpp>
#include <opencv2/opencv.hpp>
//#include <opencv2/core/mat.hpp>
#include <opencv2/core/cuda.hpp>
#include <ftl/codecs/codecs.hpp>
......
#include <ftl/codecs/opencv_decoder.hpp>
#include <opencv2/opencv.hpp>
#include <loguru.hpp>
using ftl::codecs::OpenCVDecoder;
......
#include <ftl/codecs/opencv_encoder.hpp>
#include <opencv2/opencv.hpp>
#include <loguru.hpp>
#include <vector>
......
......@@ -4,6 +4,8 @@
#include <ftl/codecs/hevc.hpp>
#include <ftl/threads.hpp>
#include <opencv2/cudaarithm.hpp>
using ftl::codecs::definition_t;
using ftl::codecs::codec_t;
using ftl::codecs::format_t;
......
......@@ -3,6 +3,8 @@
#include <ftl/codecs/opencv_decoder.hpp>
#include <ftl/threads.hpp>
#include <opencv2/cudaarithm.hpp>
using ftl::codecs::format_t;
using ftl::codecs::definition_t;
using ftl::codecs::codec_t;
......
......@@ -7,6 +7,8 @@
#include <opencv2/cudaoptflow.hpp>
#endif
#include <opencv2/cudastereo.hpp>
#ifdef HAVE_LIBSGM
#include <libsgm.h>
#endif
......
#include <ftl/operators/colours.hpp>
#include <opencv2/cudaimgproc.hpp>
#include <opencv2/cudawarping.hpp>
using ftl::operators::ColourChannels;
using ftl::codecs::Channel;
......
......@@ -2,6 +2,9 @@
#include "ftl/operators/disparity.hpp"
#include <opencv2/cudaimgproc.hpp>
#include <opencv2/cudaarithm.hpp>
using cv::Size;
using cv::cuda::GpuMat;
......
#include <ftl/operators/opticalflow.hpp>
#include <opencv2/cudaimgproc.hpp>
using ftl::rgbd::Frame;
using ftl::rgbd::Source;
using ftl::codecs::Channel;
......
......@@ -6,6 +6,8 @@
#include <ftl/cuda/normals.hpp>
#include <opencv2/cudawarping.hpp>
using ftl::operators::HFSmoother;
using ftl::operators::SimpleMLS;
using ftl::operators::ColourMLS;
......
......@@ -8,6 +8,8 @@
#define LOGURU_REPLACE_GLOG 1
#include <loguru.hpp>
#include <opencv2/imgcodecs.hpp>
#include <opencv2/imgproc.hpp>
#include <opencv2/core/cuda_stream_accessor.hpp>
//#include <ftl/filters/smoothing.hpp>
......
......@@ -7,7 +7,7 @@ set(RGBDSRC
src/sources/stereovideo/stereovideo.cpp
#src/sources/net/net.cpp
#src/streamer.cpp
src/colour.cpp
#src/colour.cpp
src/group.cpp
src/cb_segmentation.cpp
#src/abr.cpp
......
......@@ -3,7 +3,7 @@
#include <Eigen/Eigen>
#include <ftl/cuda_util.hpp>
#include <opencv2/opencv.hpp>
//#include <opencv2/opencv.hpp>
#include <ftl/rgbd/camera.hpp>
#include <ftl/rgbd/frame.hpp>
......
......@@ -5,7 +5,7 @@
#include <ftl/timer.hpp>
#include <ftl/rgbd/frame.hpp>
#include <opencv2/opencv.hpp>
//#include <opencv2/core.hpp>
#include <vector>
namespace ftl {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment