超像素与分割

Python 图像处理

Rebeca Gonzalez

Data Engineer

分割

Python 图像处理

分割

Python 图像处理

图像表示

Python 图像处理

超像素

Python 图像处理

超像素的优势

  • 更有意义的区域
  • 计算更高效
Python 图像处理

分割

  • 监督式
  • 无监督式

Python 图像处理

无监督分割

简单线性迭代聚类(SLIC)

Python 图像处理

无监督分割(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")
Python 图像处理

无监督分割(SLIC)

Python 图像处理

更多分割区域

# 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)
Python 图像处理

更多分割区域

Python 图像处理

Passons à la pratique !

Python 图像处理

Preparing Video For Download...