Public Member Functions | Public Attributes | Private Member Functions | Private Attributes | List of all members
Slic Class Reference

#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_< Vec5dcenters
 
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
 

Detailed Description

Definition at line 38 of file slic.h.

Constructor & Destructor Documentation

Slic::Slic ( )

Definition at line 7 of file slic.cpp.

Slic::~Slic ( )

Definition at line 14 of file slic.cpp.

Member Function Documentation

void Slic::clear_data ( )
private

Definition at line 23 of file slic.cpp.

void Slic::colour_with_cluster_means ( cv::Mat &  image)

Definition at line 316 of file slic.cpp.

double Slic::compute_dist ( int  ci,
cv::Point  pixel,
cv::Vec3b  colour 
)
private

Definition at line 67 of file slic.cpp.

void Slic::create_connectivity ( const cv::Mat &  image)

Definition at line 195 of file slic.cpp.

void Slic::display_center_grid ( cv::Mat &  image,
cv::Scalar  colour 
)

Definition at line 258 of file slic.cpp.

void Slic::display_contours ( cv::Mat &  image,
cv::Vec3b  colour 
)

Definition at line 270 of file slic.cpp.

cv::Point Slic::find_local_minimum ( const cv::Mat_< cv::Vec3b > &  image,
cv::Point  center 
)
private

Definition at line 86 of file slic.cpp.

void Slic::generate_superpixels ( const cv::Mat &  image,
int  step,
int  nc 
)

Definition at line 123 of file slic.cpp.

void Slic::init_data ( const cv::Mat &  image)
private

Definition at line 37 of file slic.cpp.

Member Data Documentation

vector<int> Slic::center_counts

Definition at line 75 of file slic.h.

cv::Mat_<Vec5d> Slic::centers

Definition at line 73 of file slic.h.

cv::Mat_<int> Slic::clusters

Definition at line 69 of file slic.h.

cv::Mat_<double> Slic::distances

Definition at line 70 of file slic.h.

int Slic::nc
private

Definition at line 43 of file slic.h.

int Slic::ns
private

Definition at line 43 of file slic.h.

int Slic::step
private

Definition at line 43 of file slic.h.


The documentation for this class was generated from the following files:


jsk_perception
Author(s): Manabu Saito, Ryohei Ueda
autogenerated on Mon May 3 2021 03:03:27