#include <slic.h>
Public Member Functions | |
void | colour_with_cluster_means (cv::Mat &image) |
void | create_connectivity (const cv::Mat &image) |
void | display_center_grid (cv::Mat &image, cv::Scalar colour) |
void | display_contours (cv::Mat &image, cv::Vec3b colour) |
void | generate_superpixels (const cv::Mat &image, int step, int nc) |
Slic () | |
~Slic () | |
Public Attributes | |
vector< int > | center_counts |
cv::Mat_< Vec5d > | centers |
cv::Mat_< int > | clusters |
cv::Mat_< double > | distances |
Private Member Functions | |
void | clear_data () |
double | compute_dist (int ci, cv::Point pixel, cv::Vec3b colour) |
cv::Point | find_local_minimum (const cv::Mat_< cv::Vec3b > &image, cv::Point center) |
void | init_data (const cv::Mat &image) |
Private Attributes | |
int | nc |
int | ns |
int | step |
Slic::Slic | ( | ) |
Slic::~Slic | ( | ) |
void Slic::clear_data | ( | ) | [private] |
void Slic::colour_with_cluster_means | ( | cv::Mat & | image | ) |
double Slic::compute_dist | ( | int | ci, |
cv::Point | pixel, | ||
cv::Vec3b | colour | ||
) | [private] |
void Slic::create_connectivity | ( | const cv::Mat & | image | ) |
void Slic::display_center_grid | ( | cv::Mat & | image, |
cv::Scalar | colour | ||
) |
void Slic::display_contours | ( | cv::Mat & | image, |
cv::Vec3b | colour | ||
) |
cv::Point Slic::find_local_minimum | ( | const cv::Mat_< cv::Vec3b > & | image, |
cv::Point | center | ||
) | [private] |
void Slic::generate_superpixels | ( | const cv::Mat & | image, |
int | step, | ||
int | nc | ||
) |
void Slic::init_data | ( | const cv::Mat & | image | ) | [private] |
cv::Mat_<Vec5d> Slic::centers |
cv::Mat_<int> Slic::clusters |
cv::Mat_<double> Slic::distances |
int Slic::step [private] |