Superpixely a segmentace

Image Processing in Python

Rebeca Gonzalez

Data Engineer

Segmentace

Image Processing in Python

Segmentace

Image Processing in Python

Reprezentace obrazu

Image Processing in Python

Superpixely

Image Processing in Python

Výhody superpixelů

  • Smysluplnější oblasti
  • Výpočetní efektivita
Image Processing in Python

Segmentace

  • S učitelem
  • Bez učitele

Image Processing in Python

Segmentace bez učitele

Simple Linear Iterative Clustering (SLIC)

Image Processing in Python

Segmentace bez učitele (SLIC)

# Import the modules
from skimage.segmentation import slic
from skimage.color import label2rgb

# Obtain the segments segments = slic(image)
# Put segments on top of original image to compare segmented_image = label2rgb(segments, image, kind='avg')
show_image(image) show_image(segmented_image, "Segmented image")
Image Processing in Python

Segmentace bez učitele (SLIC)

Image Processing in Python

Více segmentů

# Import the modules
from skimage.segmentation import slic
from skimage.color import label2rgb

# Obtain the segmentation with 300 regions segments = slic(image, n_segments= 300) # Put segments on top of original image to compare segmented_image = label2rgb(segments, image, kind='avg')
show_image(segmented_image)
Image Processing in Python

Více segmentů

Image Processing in Python

Pojďme si procvičit!

Image Processing in Python

Preparing Video For Download...