'SLIC Superpixel number of superpixels is smaller than the requested

When using the SLIC Superpixel segmentation, sometimes the resulting number of Superpixels is smaller than the requested, is this because of enforced connectivity, if not what is the reason behind this ?



Solution 1:[1]

SLIC superpixel segmentation algorithm works by providing the corresponding superpixels based on the n_segments as indicated here Slic Algo

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 Lukman E. ISMAILA