python - Set superpixel color -


Assuming that you have the result of superpixing algorithms such as SLIC

  Segment_celic = Slick (image, n_segs = 250, compactness = 10, sigma = 1)  

How to display the image as a color separately with a preset color for each prepex (Say, you already know

  imshow (mark_boundaries (img, segments_slic))  

ex> < P> but only to borders Instead of being marked, I need sense segmentation from those labels with whom I work

If you know which value you want to specify in a particular state, then copy the label (i, j)

  new_labels = labels.copy ()  

Then proceed to the label "Rename":

  new_labels [label == label [i, j]] = new_label_value  

Comments

Popular posts from this blog

import - Python ImportError: No module named wmi -

Editing Python Class in Shell and SQLAlchemy -

c# - MySQL Parameterized Select Query joining tables issue -