Skip to content

nikithashr/Road_Crack_Detection_-EdgeClassification-

Repository files navigation

SLIC Superpixel Implementation

This repository contains an implementation of the SLIC Superpixel algorithm by Achanta et al. (PAMI'12, vol. 34, num. 11, pp. 2274-2282). The C++ implementation is created to work with the strutures of OpenCV.

Exemplary result

The images below shows an example of an over-segmentation using 400 superpixels and a weight factor of 40.

Dog Dog Segmentation

3). To run the code:

a) cmake .

b) make

c) ./test_bow_slic images/street_image.jpg 2000 40 60 15

d) To change the number of kmeans centers, goto bow_slic.hpp and change "#define KMEANS " to the desired value. To change the filter_size for texton map generation, change #define FILTER_SIZE "

note: make sure you have an updated version of the file "kmeans.txt" with the right number of centers and filter size

e) To compute kmeans.txt, go here: https://github.com/nikithashr/Texton-Map-Generation-

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published