Superpixel Benchmark
Superpixel benchmark, tools and algorithms.
visualization.h
Go to the documentation of this file.
1 
32 #ifndef VISUALIZATION_H
33 #define VISUALIZATION_H
34 
35 #include <opencv2/opencv.hpp>
36 
41 public:
48  static void drawContours(const cv::Mat &image, const cv::Mat &labels,
49  cv::Mat &contours, bool eight_connected = false);
50 
56  static void drawRandom(const cv::Mat &labels, cv::Mat &random);
57 
63  static void drawMeans(const cv::Mat &image, const cv::Mat &labels,
64  cv::Mat &means);
65 
71  static void drawPerturbedMeans(const cv::Mat &image, const cv::Mat &labels,
72  cv::Mat &means);
73 
80  static void drawPrecisionRecall(const cv::Mat &image, const cv::Mat &labels,
81  const cv::Mat &gt, cv::Mat &pre_rec, float d = 0.0025);
82 
89  static void drawUndersegmentationError(const cv::Mat &image, const
90  cv::Mat &labels, const cv::Mat &gt, cv::Mat &ue);
91 
92 };
93 
94 #endif /* VISUALIZATION_H */
95 
static void drawUndersegmentationError(const cv::Mat &image, const cv::Mat &labels, const cv::Mat &gt, cv::Mat &ue)
Indicate Undersegmentation Error.
Definition: visualization.cpp:276
static void drawPerturbedMeans(const cv::Mat &image, const cv::Mat &labels, cv::Mat &means)
Draw perturbed mean colored superpixels.
Definition: visualization.cpp:109
static void drawPrecisionRecall(const cv::Mat &image, const cv::Mat &labels, const cv::Mat &gt, cv::Mat &pre_rec, float d=0.0025)
Indicate false negatives and false positives.
Definition: visualization.cpp:219
static void drawMeans(const cv::Mat &image, const cv::Mat &labels, cv::Mat &means)
Draw mean colored superpixels.
Definition: visualization.cpp:174
Some basic visualizations of superpixel segmentations.
Definition: visualization.h:40
static void drawContours(const cv::Mat &image, const cv::Mat &labels, cv::Mat &contours, bool eight_connected=false)
Draw contours.
Definition: visualization.cpp:37
static void drawRandom(const cv::Mat &labels, cv::Mat &random)
Color superpixels randomly.
Definition: visualization.cpp:79