32 #ifndef VISUALIZATION_H 33 #define VISUALIZATION_H 35 #include <opencv2/opencv.hpp> 48 static void drawContours(
const cv::Mat &image,
const cv::Mat &labels,
49 cv::Mat &contours,
bool eight_connected =
false);
56 static void drawRandom(
const cv::Mat &labels, cv::Mat &random);
63 static void drawMeans(
const cv::Mat &image,
const cv::Mat &labels,
81 const cv::Mat >, cv::Mat &pre_rec,
float d = 0.0025);
90 cv::Mat &labels,
const cv::Mat >, cv::Mat &ue);
static void drawUndersegmentationError(const cv::Mat &image, const cv::Mat &labels, const cv::Mat >, 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 >, 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