Superpixel Benchmark
Superpixel benchmark, tools and algorithms.
dasp_opencv.h
Go to the documentation of this file.
1 
32 #ifndef DASP_OPENCV_H
33 #define DASP_OPENCV_H
34 
35 #include <opencv2/opencv.hpp>
36 #include "Tools.hpp"
37 
41 class DASP_OpenCV {
42 public:
44  static const int SEED_MODE_RANDOM = 0;
46  static const int SEED_MODE_SPDS = 1;
48  static const int SEEDS_MODE_DELTA = 2;
49 
61  static void computeSuperpixels(const cv::Mat &image, const cv::Mat &depth,
62  int superpixels, float spatial_weight, float normal_weight,
63  int seed_mode, int iterations, dasp::Camera camera, cv::Mat &labels);
64 };
65 
66 #endif /* DASP_OPENCV_H */
67 
Wrapper for running DASP on OpenCV images.
Definition: dasp_opencv.h:41
static const int SEED_MODE_RANDOM
Random seed mode.
Definition: dasp_opencv.h:44
static const int SEED_MODE_SPDS
SPDS seed mode.
Definition: dasp_opencv.h:46
static const int SEEDS_MODE_DELTA
Delta seed mode.
Definition: dasp_opencv.h:48
static void computeSuperpixels(const cv::Mat &image, const cv::Mat &depth, int superpixels, float spatial_weight, float normal_weight, int seed_mode, int iterations, dasp::Camera camera, cv::Mat &labels)
Compute superpixels using DASP; see README.md for details.
Definition: dasp_opencv.cpp:42