The SLIC superpixel generation algorithm works by using two main parameters [1]}. The first parameter is \(k\) , which is the number of superpixels to generate; this parameter enforces the generation of similarly sized regions with spacing \(S=\sqrt{N/k}\) , where \(N\)  is the number of pixels in the image. This value then controls the number of regions generated by SLIC. The second parameter of the algorithm is \(m\) , a constant used to calculate a distance measure used to determine which region a pixel belongs to,
\(D = \sqrt{d_c^2+\left( \frac{d_s}{S}\right)^2 m^2}\) 
