How to assign the same weight to color and spatial promity for creating superpixels with the slic method in scikit-mage?

Viewed 8

I'm trying to use this method for creating superpixels. The documentation says that the parameter compacteness "balances color proximity and space proximity. Higher values give more weight to space proximity, making superpixel shapes more square/cubic". It can be found in this link:

https://scikit-image.org/docs/stable/api/skimage.segmentation.html#skimage.segmentation.slic

However, I'm not sure how to assign the same weight to both, color and space proximity. Is it a matter of just assigning 1 to compactness?

Best regards.

0 Answers
Related