SlideShare a Scribd company logo
Contour-Constrained Superpixels for Image and Video
Processing
Se-Ho Lee, Won-Dong Jang, and Chang-Su Kim
Korea University
CVPR 2017
Overview
• Introduction
• Contour-constrained superpixels (CCS)
• Superpixel labeling
• Contour constraint
• Hierarchical superpixel refinement
• Temporal superpixels
• Temporal superpixel labeling
• Merging, splitting, and relabeling
• Experimental results
• Conclusions
• Superpixel
• Over-segment input images into a set of meaningful regions
• Can reduce the number of image primitives or units greatly
• Superpixels should adhere to object contours
Introduction
Superpixel
• Applications
• Preprocessing technique for many vision applications
• ex) Saliency detection and image segmentation
Superpixel
• Conventional methods
• K-means based methods
• Assign each pixel to the nearest cluster and update the cluster
center iteratively
• SLIC (TPAMI’12), LSC (CVPR’15), and MSLIC (CVPR’16)
• Coarse-to-fine methods
• Change the superpixel label of boundary regions iteratively based
on the cost function
• From block-level to pixel-level
• SEEDS (IJCV’15) and Yao et al. (CVPR’15)
Contour-Constrained Superpixels
• Contributions
• Introduction of the contour constraint
• Extension of the proposed algorithm for video processing
• Remarkable performance achievement and improvement of
many computer vision algorithms
Contour-Constrained Superpixels
• Coarse-to-fine refinement
• From block-level to pixel-level
• Hierarchical block structure
Contour-Constrained Superpixels
• Superpixel labeling
• Hierarchical block structure
• From block to pixel levels
• Divide only inhomogeneous regions
• Can maintain relatively regular and compact shape
Contour-Constrained Superpixels
• Superpixel labeling
• Change the label of region (block or pixel) 𝑅𝑖 from 𝑙 𝑅𝑖 to
𝑙 𝑅𝑗 of neighboring region 𝑅𝑗 ∈ 𝒩𝑅 𝑖
• Change the label of region by minimizing the cost function
• 𝐸 𝑖, 𝑗 = 𝐸D 𝑖, 𝑗 + 𝛾𝐸L 𝑖, 𝑗 + 𝜂𝐸I 𝑖, 𝑗 × 𝐸C 𝑖, 𝑗
• To preserve the topology of superpixels
• Check the boundary region 𝑅𝑖 is simple point
Initial Level 1 Level 2 Level 3 Level 4
Superpixel Labeling
• Feature distance from superpixel centroid
• 𝐸D 𝑖, 𝑗 = 𝐜 𝑅𝑖 − 𝐜 𝑆𝑙 𝑅 𝑗
2
+ 𝐩 𝑅𝑖 − 𝐩 𝑆𝑙 𝑅 𝑗
2
• Color distance term makes the color of each superpixel to be regular
• Spatial distance term imposes the superpixels to be distributed
compactly
Color distance Spatial distance
Superpixel Labeling
• Boundary length cost
• 𝐸L 𝑖, 𝑗 = 𝜆 𝑅𝑖, 𝑙 𝑅𝑗 − 𝜆 𝑅𝑖, 𝑙 𝑅𝑖
• 𝜆 𝑅𝑖, 𝑘 : total number of boundary regions when the superpixel
label of 𝑅𝑖 is 𝑘
• Minimize the boundary length of superpixels
• Make the superpixels distributed compactly
Superpixel Labeling
• Inter-region color cost
• 𝐸I 𝑖, 𝑗 = max 0, 𝐜 𝑅𝑖 − 𝐜 𝑅𝑗
2
− 𝜅 𝑆𝑙 𝑅 𝑗
• Neighboring regions with dissimilar color information
→ Assign different superpixel labels
• Internal difference
• Measure the amount of texture information of superpixels
• 𝜅 𝑆𝑙 𝑅 𝑖
= max
𝑅 𝑚,𝑅 𝑛∈𝑆𝑙 𝑅 𝑖
,
𝑅 𝑛∈𝒩 𝑅 𝑚
𝐜 𝑅 𝑚 − 𝐜 𝑅 𝑛
2
• Maximum color difference between neighboring regions within 𝑆𝑙 𝑅 𝑖
Superpixel Labeling
• Contour constraint 𝐸C 𝑖, 𝑗
• Amplify the cost function when there is an object contour
between two regions
• Use holistically-nested edge detection (HED)*
• Deep learning based edge detection method
𝐸 𝑖, 𝑗 = 𝐸D 𝑖, 𝑗 + 𝛾𝐸L 𝑖, 𝑗 + 𝜂𝐸I 𝑖, 𝑗 × 𝐸C 𝑖, 𝑗
* S. Xie and Z. Tu, Holistically-nested edge detection. In ICCV, pages 1395-1403, 2015.
Contour Constraint
• Contour pattern set extraction
• Use 200 training images in the BSDS500 dataset
• Denote patch centered at each contour pixel as a contour
pattern
• Select top 1,000 frequently occurring patterns
Contour Constraint
• Contour pattern set
• Only consider the patterns which divide the patch into two regions
• 1,000 patterns cover 90.5% of the patches in the training dataset
Contour Constraint
• Contour pattern matching
• Get thin binary contour map
• Perform non-maximum suppression and then do thresholding
• Compute Hamming distances from the contour patterns and
select the best matching pattern
Contour Constraint
• Contour probability 𝜙 𝑢, 𝑣
• Difficult to estimate the existence of object contours only
considering the thin contour map
• Measure the proportion of patches whose matching patterns
separate 𝑢 from 𝑣
• Consider patches containing both pixels 𝑢 and 𝑣
Contour Constraint
• Determining contour constraint 𝐸C 𝑖, 𝑗
• Contour probability 𝜓 𝑅𝑖, 𝑅𝑗 between regions
• Find the maximum contour probability between the pixels in 𝑅𝑖
and 𝑅𝑗
• 𝜓 𝑅𝑖, 𝑅𝑗 = max
𝑢∈𝑅 𝑖,𝑣∈𝑅 𝑗
𝜙 𝑢, 𝑣
• 𝐸C 𝑖, 𝑗 = exp 𝛽 × 𝜓 𝑅𝑖, 𝑅𝑗
Hierarchical Superpixel Refinement
• Hierarchical block structure
• Divide only inhomogeneous regions into four blocks
• Dissimilarity function
• 𝜃 𝑅𝑖 = max
𝑢,𝑣∈𝑅 𝑖,𝑣∈𝒩𝑢
𝐜 𝑢 − 𝐜 𝑣 2 + exp 𝛽 × max
𝑢,𝑣∈𝑅 𝑖,𝑣∈𝒩𝑢
𝜙 𝑢, 𝑣
• Divide the region 𝑅𝑖 if 𝜃 𝑅𝑖 > 𝜏div
Contour-Constrained Superpixels
• Algorithm
Temporal Superpixels
• Superpixels for videos
• Get temporally consistent superpixels
Input SLIC CCS
Temporal Superpixels
• Initialization
• To make temporally consistent superpixels
• Estimate optical flows from 𝐼 𝑡−1
to 𝐼 𝑡
• Transfer the label of each superpixel by employing the average
optical flow of the superpixel
• Do not assign any labels to occluded or disoccluded pixels
• Occluded pixel: a pixel mapped from multiple superpixels
• Disoccluded pixel: a pixel mapped from no superpixel
Temporal Superpixels
• Temporal superpixel labeling
• Performed at the pixel level only
• Based on the energy function
• 𝐸 𝑖, 𝑗 = 𝐸D 𝑖, 𝑗 + 𝛾𝐸L 𝑖, 𝑗 + 𝜂𝐸I 𝑖, 𝑗 × 𝐸T 𝑖, 𝑗
• 𝐸T 𝑖, 𝑗 : temporal contour constraint
Temporal Superpixel Labeling
• Temporal Contour constraint
• Make superpixels temporally consistent
• Make superpixels compatible with image contours
• 𝐸T 𝑖, 𝑗, 𝑡 = 𝐸C 𝑖, 𝑗, 𝑡 × 𝜌 𝑖, 𝑗, 𝑡
• Relaxation factor 𝜌 𝑖, 𝑗, 𝑡
• 𝜌 𝑖, 𝑗, 𝑡 = ൞
1
1+exp −𝜁×ℎ 𝑅𝑖
𝑡
, if 𝑙 𝑅𝑗
𝑡
∈ ℒ 𝑖
𝑡
1, otherwise
• ℒ 𝑖
𝑡
is the set of labels that are mapped to 𝑅𝑖
𝑡
from 𝐼 𝑡−1
• Relax 𝐸T 𝑖, 𝑗, 𝑡 when 𝑅𝑖
𝑡
does not contain object contour
Merging, Splitting, and Relabeling
• Merging and splitting
• Prevent irregular superpixel size
• When Τ𝐴 𝑘
𝑡 ҧ𝐴 is larger than 𝜏spl → split
• Consider the biggest eigenvector of the spatial distribution
• When Τ𝐴 𝑘
𝑡 ҧ𝐴 is smaller than 𝜏mer → merge
• Merge to the nearest superpixel
Merging, Splitting, and Relabeling
• Relabeling
• Avoid incorrect labeling
• Because of occlusion or illumination variation
• Define color consistency 𝐶 𝑘
• 𝐶 𝑘 = 𝐜1:𝑡−1 𝑆 𝑘 − 𝐜 𝑡 𝑆 𝑘
2
• If 𝐶 𝑘 is larger than 𝜏rel → relabel
Temporal Superpixels
• Algorithm
Experimental Results
• Superpixel results
• On BSDS500 dataset
• CCS-wo-CC denotes proposed algorithm without the contour
constraint
ASA ↑ BR ↑ UE ↓
Experimental Results
• Temporal superpixel results
• On SegTrack dataset
SA2D ↑ BR2D ↑ UE2D ↓
SA3D ↑ BR3D ↑ UE3D ↓
Experimental Results
• Visual comparison of superpixel methods
Input SEEDS LSC Proposed
Experimental Results
• Visual comparison of temporal superpixel methods
TCS TSP Proposed
Experimental Results
• Run-times comparison
• Superpixel algorithms
• Temporal superpixel algorithms
Turbopixels SLIC ERS LSC SEEDS MSLIC CCS
Times(s) 8.09 0.26 1.52 0.34 0.06 0.36 0.97
sGBH SLIC TCS TSP CCS
Times(s) 5.71 0.08 7.83 2.39 1.70
Experimental Results
• Application to video object segmentation
• To superpixel-based video object segmentation method*
• Use CCS instead of SLIC as a preprocessing
• Intersection over union (IoU) is increased from 0.532 to 0.571
* W.-D. Jang and C.-S. Kim, Semi-supervised video object segmentation using multiple random walkers. In BMVC, 2016.
Experimental Results
• Application to video saliency detection
• Postprocessing
• Average the saliency values of the pixels in all frames, constituting
each superpixel
• Applied to HS* and DHSNet**
* Q. Yan, L. Xu, J. Shi, and J. Jia, Hierarchical saliency detection. In CVPR, 2013.
** N. Liu and J. Han, DHSNet: Deep hierarchical saliency network for salient object detection. In CVPR, 2016.
Experimental Results
Conclusions
• Contour-constrained superpixels (CCS)
• Perform hierarchical refinement from block to pixel levels
• Based on the contour constraint
• Temporal superpixels
• CCS algorithm for video processing
• Use optical flow to obtain temporally consistent superpixels
• Experimental results
• CCS outperforms the state-of-the-art superpixel methods
• Can be applied to object segmentation and saliency detection
Thank You
Q & A

More Related Content

PDF
Semantic Line Detection and Its Applications
PDF
Learning to Perceive the 3D World
PDF
Video Object Segmentation in Videos
PDF
Online video object segmentation via convolutional trident network
PDF
Fast and Noise Robust Depth from Focus using Ring Difference Filter with Your...
PDF
Temporal Superpixels Based on Proximity-Weighted Patch Matching
PDF
Color and 3D Semantic Reconstruction of Indoor Scenes from RGB-D stream
PDF
Super resolution in deep learning era - Jaejun Yoo
Semantic Line Detection and Its Applications
Learning to Perceive the 3D World
Video Object Segmentation in Videos
Online video object segmentation via convolutional trident network
Fast and Noise Robust Depth from Focus using Ring Difference Filter with Your...
Temporal Superpixels Based on Proximity-Weighted Patch Matching
Color and 3D Semantic Reconstruction of Indoor Scenes from RGB-D stream
Super resolution in deep learning era - Jaejun Yoo

What's hot (20)

PDF
presentation644v4
PDF
Background Subtraction Based on Phase and Distance Transform Under Sudden Ill...
PDF
4 image enhancement in spatial domain
PDF
Parn pyramidal+affine+regression+networks+for+dense+semantic+correspondence
PDF
Contrast enhancement in digital images
PDF
Image Completion using Planar Structure Guidance (SIGGRAPH 2014)
PDF
PR-217: EfficientDet: Scalable and Efficient Object Detection
PPTX
Spatial enhancement
PDF
Unsupervised visual representation learning overview: Toward Self-Supervision
PDF
Deep Local Parametric Filters for Image Enhancement
PDF
Deep Local Parametric Filters for Image Enhancement
PPTX
Motion Estimation in h.264 encoder
PPT
Chap5 imange enhancemet
PDF
ShuffleNet - PR054
PPT
Image enhancement
PDF
[2020 CVPR Efficient DET paper review]
PPTX
Flash Photography and toonification
PDF
Deep learning fundamental and Research project on IBM POWER9 system from NUS
PPTX
Image enhancement techniques
PDF
Talk 2011-buet-perception-event
presentation644v4
Background Subtraction Based on Phase and Distance Transform Under Sudden Ill...
4 image enhancement in spatial domain
Parn pyramidal+affine+regression+networks+for+dense+semantic+correspondence
Contrast enhancement in digital images
Image Completion using Planar Structure Guidance (SIGGRAPH 2014)
PR-217: EfficientDet: Scalable and Efficient Object Detection
Spatial enhancement
Unsupervised visual representation learning overview: Toward Self-Supervision
Deep Local Parametric Filters for Image Enhancement
Deep Local Parametric Filters for Image Enhancement
Motion Estimation in h.264 encoder
Chap5 imange enhancemet
ShuffleNet - PR054
Image enhancement
[2020 CVPR Efficient DET paper review]
Flash Photography and toonification
Deep learning fundamental and Research project on IBM POWER9 system from NUS
Image enhancement techniques
Talk 2011-buet-perception-event
Ad

Similar to Contour-Constrained Superpixels for Image and Video Processing (20)

PDF
Temporal Segment Network
PPTX
Creating 3D neuron reconstructions from image stacks and virtual slides
PPT
WT in IP.ppt
PDF
FeatUp: A Model-Agnostic Framework for Features at Any Resolution
PDF
DC04 Image Compression Standards.pdf
PPTX
Cvpr 2018 papers review (efficient computing)
PPTX
Wits presentation 6_28072015
PDF
Deep Learning Approach in Characterizing Salt Body on Seismic Images - by Zhe...
PPTX
150807 Fast R-CNN
PPTX
Video Compression Basics by sahil jain
PDF
Superpixel algorithms (whatershed, mean-shift, SLIC, BSLIC), Foolad
PDF
Deferred shading
PPT
ct 6 chapter compmd tomography chapter 6
PDF
PR-132: SSD: Single Shot MultiBox Detector
PPTX
Digital Image Processing.pptx
PPT
Alignment and Exposure System
PDF
HiPEAC 2019 Workshop - Use Cases
PPTX
Thesis presentation
PPTX
Real-time lightmap baking
PPTX
Temporal Segment Network
Creating 3D neuron reconstructions from image stacks and virtual slides
WT in IP.ppt
FeatUp: A Model-Agnostic Framework for Features at Any Resolution
DC04 Image Compression Standards.pdf
Cvpr 2018 papers review (efficient computing)
Wits presentation 6_28072015
Deep Learning Approach in Characterizing Salt Body on Seismic Images - by Zhe...
150807 Fast R-CNN
Video Compression Basics by sahil jain
Superpixel algorithms (whatershed, mean-shift, SLIC, BSLIC), Foolad
Deferred shading
ct 6 chapter compmd tomography chapter 6
PR-132: SSD: Single Shot MultiBox Detector
Digital Image Processing.pptx
Alignment and Exposure System
HiPEAC 2019 Workshop - Use Cases
Thesis presentation
Real-time lightmap baking
Ad

More from NAVER Engineering (20)

PDF
React vac pattern
PDF
디자인 시스템에 직방 ZUIX
PDF
진화하는 디자인 시스템(걸음마 편)
PDF
서비스 운영을 위한 디자인시스템 프로젝트
PDF
BPL(Banksalad Product Language) 무야호
PDF
이번 생에 디자인 시스템은 처음이라
PDF
날고 있는 여러 비행기 넘나 들며 정비하기
PDF
쏘카프레임 구축 배경과 과정
PDF
플랫폼 디자이너 없이 디자인 시스템을 구축하는 프로덕트 디자이너의 우당탕탕 고통 연대기
PDF
200820 NAVER TECH CONCERT 15_Code Review is Horse(코드리뷰는 말이야)(feat.Latte)
PDF
200819 NAVER TECH CONCERT 03_화려한 코루틴이 내 앱을 감싸네! 코루틴으로 작성해보는 깔끔한 비동기 코드
PDF
200819 NAVER TECH CONCERT 10_맥북에서도 아이맥프로에서 빌드하는 것처럼 빌드 속도 빠르게 하기
PDF
200819 NAVER TECH CONCERT 08_성능을 고민하는 슬기로운 개발자 생활
PDF
200819 NAVER TECH CONCERT 05_모르면 손해보는 Android 디버깅/분석 꿀팁 대방출
PDF
200819 NAVER TECH CONCERT 09_Case.xcodeproj - 좋은 동료로 거듭나기 위한 노하우
PDF
200820 NAVER TECH CONCERT 14_야 너두 할 수 있어. 비전공자, COBOL 개발자를 거쳐 네이버에서 FE 개발하게 된...
PDF
200820 NAVER TECH CONCERT 13_네이버에서 오픈 소스 개발을 통해 성장하는 방법
PDF
200820 NAVER TECH CONCERT 12_상반기 네이버 인턴을 돌아보며
PDF
200820 NAVER TECH CONCERT 11_빠르게 성장하는 슈퍼루키로 거듭나기
PDF
200819 NAVER TECH CONCERT 07_신입 iOS 개발자 개발업무 적응기
React vac pattern
디자인 시스템에 직방 ZUIX
진화하는 디자인 시스템(걸음마 편)
서비스 운영을 위한 디자인시스템 프로젝트
BPL(Banksalad Product Language) 무야호
이번 생에 디자인 시스템은 처음이라
날고 있는 여러 비행기 넘나 들며 정비하기
쏘카프레임 구축 배경과 과정
플랫폼 디자이너 없이 디자인 시스템을 구축하는 프로덕트 디자이너의 우당탕탕 고통 연대기
200820 NAVER TECH CONCERT 15_Code Review is Horse(코드리뷰는 말이야)(feat.Latte)
200819 NAVER TECH CONCERT 03_화려한 코루틴이 내 앱을 감싸네! 코루틴으로 작성해보는 깔끔한 비동기 코드
200819 NAVER TECH CONCERT 10_맥북에서도 아이맥프로에서 빌드하는 것처럼 빌드 속도 빠르게 하기
200819 NAVER TECH CONCERT 08_성능을 고민하는 슬기로운 개발자 생활
200819 NAVER TECH CONCERT 05_모르면 손해보는 Android 디버깅/분석 꿀팁 대방출
200819 NAVER TECH CONCERT 09_Case.xcodeproj - 좋은 동료로 거듭나기 위한 노하우
200820 NAVER TECH CONCERT 14_야 너두 할 수 있어. 비전공자, COBOL 개발자를 거쳐 네이버에서 FE 개발하게 된...
200820 NAVER TECH CONCERT 13_네이버에서 오픈 소스 개발을 통해 성장하는 방법
200820 NAVER TECH CONCERT 12_상반기 네이버 인턴을 돌아보며
200820 NAVER TECH CONCERT 11_빠르게 성장하는 슈퍼루키로 거듭나기
200819 NAVER TECH CONCERT 07_신입 iOS 개발자 개발업무 적응기

Recently uploaded (20)

PPTX
Digital-Transformation-Roadmap-for-Companies.pptx
PDF
Dropbox Q2 2025 Financial Results & Investor Presentation
PDF
Peak of Data & AI Encore- AI for Metadata and Smarter Workflows
PDF
Empathic Computing: Creating Shared Understanding
PDF
Build a system with the filesystem maintained by OSTree @ COSCUP 2025
PDF
Review of recent advances in non-invasive hemoglobin estimation
PDF
Mobile App Security Testing_ A Comprehensive Guide.pdf
PDF
Blue Purple Modern Animated Computer Science Presentation.pdf.pdf
PDF
Unlocking AI with Model Context Protocol (MCP)
PPTX
Understanding_Digital_Forensics_Presentation.pptx
PPTX
Effective Security Operations Center (SOC) A Modern, Strategic, and Threat-In...
PDF
Advanced methodologies resolving dimensionality complications for autism neur...
PPTX
ACSFv1EN-58255 AWS Academy Cloud Security Foundations.pptx
PDF
Profit Center Accounting in SAP S/4HANA, S4F28 Col11
PPTX
sap open course for s4hana steps from ECC to s4
PPTX
20250228 LYD VKU AI Blended-Learning.pptx
PDF
Encapsulation_ Review paper, used for researhc scholars
PDF
Architecting across the Boundaries of two Complex Domains - Healthcare & Tech...
PPTX
VMware vSphere Foundation How to Sell Presentation-Ver1.4-2-14-2024.pptx
PDF
MIND Revenue Release Quarter 2 2025 Press Release
Digital-Transformation-Roadmap-for-Companies.pptx
Dropbox Q2 2025 Financial Results & Investor Presentation
Peak of Data & AI Encore- AI for Metadata and Smarter Workflows
Empathic Computing: Creating Shared Understanding
Build a system with the filesystem maintained by OSTree @ COSCUP 2025
Review of recent advances in non-invasive hemoglobin estimation
Mobile App Security Testing_ A Comprehensive Guide.pdf
Blue Purple Modern Animated Computer Science Presentation.pdf.pdf
Unlocking AI with Model Context Protocol (MCP)
Understanding_Digital_Forensics_Presentation.pptx
Effective Security Operations Center (SOC) A Modern, Strategic, and Threat-In...
Advanced methodologies resolving dimensionality complications for autism neur...
ACSFv1EN-58255 AWS Academy Cloud Security Foundations.pptx
Profit Center Accounting in SAP S/4HANA, S4F28 Col11
sap open course for s4hana steps from ECC to s4
20250228 LYD VKU AI Blended-Learning.pptx
Encapsulation_ Review paper, used for researhc scholars
Architecting across the Boundaries of two Complex Domains - Healthcare & Tech...
VMware vSphere Foundation How to Sell Presentation-Ver1.4-2-14-2024.pptx
MIND Revenue Release Quarter 2 2025 Press Release

Contour-Constrained Superpixels for Image and Video Processing

  • 1. Contour-Constrained Superpixels for Image and Video Processing Se-Ho Lee, Won-Dong Jang, and Chang-Su Kim Korea University CVPR 2017
  • 2. Overview • Introduction • Contour-constrained superpixels (CCS) • Superpixel labeling • Contour constraint • Hierarchical superpixel refinement • Temporal superpixels • Temporal superpixel labeling • Merging, splitting, and relabeling • Experimental results • Conclusions
  • 3. • Superpixel • Over-segment input images into a set of meaningful regions • Can reduce the number of image primitives or units greatly • Superpixels should adhere to object contours Introduction
  • 4. Superpixel • Applications • Preprocessing technique for many vision applications • ex) Saliency detection and image segmentation
  • 5. Superpixel • Conventional methods • K-means based methods • Assign each pixel to the nearest cluster and update the cluster center iteratively • SLIC (TPAMI’12), LSC (CVPR’15), and MSLIC (CVPR’16) • Coarse-to-fine methods • Change the superpixel label of boundary regions iteratively based on the cost function • From block-level to pixel-level • SEEDS (IJCV’15) and Yao et al. (CVPR’15)
  • 6. Contour-Constrained Superpixels • Contributions • Introduction of the contour constraint • Extension of the proposed algorithm for video processing • Remarkable performance achievement and improvement of many computer vision algorithms
  • 7. Contour-Constrained Superpixels • Coarse-to-fine refinement • From block-level to pixel-level • Hierarchical block structure
  • 8. Contour-Constrained Superpixels • Superpixel labeling • Hierarchical block structure • From block to pixel levels • Divide only inhomogeneous regions • Can maintain relatively regular and compact shape
  • 9. Contour-Constrained Superpixels • Superpixel labeling • Change the label of region (block or pixel) 𝑅𝑖 from 𝑙 𝑅𝑖 to 𝑙 𝑅𝑗 of neighboring region 𝑅𝑗 ∈ 𝒩𝑅 𝑖 • Change the label of region by minimizing the cost function • 𝐸 𝑖, 𝑗 = 𝐸D 𝑖, 𝑗 + 𝛾𝐸L 𝑖, 𝑗 + 𝜂𝐸I 𝑖, 𝑗 × 𝐸C 𝑖, 𝑗 • To preserve the topology of superpixels • Check the boundary region 𝑅𝑖 is simple point Initial Level 1 Level 2 Level 3 Level 4
  • 10. Superpixel Labeling • Feature distance from superpixel centroid • 𝐸D 𝑖, 𝑗 = 𝐜 𝑅𝑖 − 𝐜 𝑆𝑙 𝑅 𝑗 2 + 𝐩 𝑅𝑖 − 𝐩 𝑆𝑙 𝑅 𝑗 2 • Color distance term makes the color of each superpixel to be regular • Spatial distance term imposes the superpixels to be distributed compactly Color distance Spatial distance
  • 11. Superpixel Labeling • Boundary length cost • 𝐸L 𝑖, 𝑗 = 𝜆 𝑅𝑖, 𝑙 𝑅𝑗 − 𝜆 𝑅𝑖, 𝑙 𝑅𝑖 • 𝜆 𝑅𝑖, 𝑘 : total number of boundary regions when the superpixel label of 𝑅𝑖 is 𝑘 • Minimize the boundary length of superpixels • Make the superpixels distributed compactly
  • 12. Superpixel Labeling • Inter-region color cost • 𝐸I 𝑖, 𝑗 = max 0, 𝐜 𝑅𝑖 − 𝐜 𝑅𝑗 2 − 𝜅 𝑆𝑙 𝑅 𝑗 • Neighboring regions with dissimilar color information → Assign different superpixel labels • Internal difference • Measure the amount of texture information of superpixels • 𝜅 𝑆𝑙 𝑅 𝑖 = max 𝑅 𝑚,𝑅 𝑛∈𝑆𝑙 𝑅 𝑖 , 𝑅 𝑛∈𝒩 𝑅 𝑚 𝐜 𝑅 𝑚 − 𝐜 𝑅 𝑛 2 • Maximum color difference between neighboring regions within 𝑆𝑙 𝑅 𝑖
  • 13. Superpixel Labeling • Contour constraint 𝐸C 𝑖, 𝑗 • Amplify the cost function when there is an object contour between two regions • Use holistically-nested edge detection (HED)* • Deep learning based edge detection method 𝐸 𝑖, 𝑗 = 𝐸D 𝑖, 𝑗 + 𝛾𝐸L 𝑖, 𝑗 + 𝜂𝐸I 𝑖, 𝑗 × 𝐸C 𝑖, 𝑗 * S. Xie and Z. Tu, Holistically-nested edge detection. In ICCV, pages 1395-1403, 2015.
  • 14. Contour Constraint • Contour pattern set extraction • Use 200 training images in the BSDS500 dataset • Denote patch centered at each contour pixel as a contour pattern • Select top 1,000 frequently occurring patterns
  • 15. Contour Constraint • Contour pattern set • Only consider the patterns which divide the patch into two regions • 1,000 patterns cover 90.5% of the patches in the training dataset
  • 16. Contour Constraint • Contour pattern matching • Get thin binary contour map • Perform non-maximum suppression and then do thresholding • Compute Hamming distances from the contour patterns and select the best matching pattern
  • 17. Contour Constraint • Contour probability 𝜙 𝑢, 𝑣 • Difficult to estimate the existence of object contours only considering the thin contour map • Measure the proportion of patches whose matching patterns separate 𝑢 from 𝑣 • Consider patches containing both pixels 𝑢 and 𝑣
  • 18. Contour Constraint • Determining contour constraint 𝐸C 𝑖, 𝑗 • Contour probability 𝜓 𝑅𝑖, 𝑅𝑗 between regions • Find the maximum contour probability between the pixels in 𝑅𝑖 and 𝑅𝑗 • 𝜓 𝑅𝑖, 𝑅𝑗 = max 𝑢∈𝑅 𝑖,𝑣∈𝑅 𝑗 𝜙 𝑢, 𝑣 • 𝐸C 𝑖, 𝑗 = exp 𝛽 × 𝜓 𝑅𝑖, 𝑅𝑗
  • 19. Hierarchical Superpixel Refinement • Hierarchical block structure • Divide only inhomogeneous regions into four blocks • Dissimilarity function • 𝜃 𝑅𝑖 = max 𝑢,𝑣∈𝑅 𝑖,𝑣∈𝒩𝑢 𝐜 𝑢 − 𝐜 𝑣 2 + exp 𝛽 × max 𝑢,𝑣∈𝑅 𝑖,𝑣∈𝒩𝑢 𝜙 𝑢, 𝑣 • Divide the region 𝑅𝑖 if 𝜃 𝑅𝑖 > 𝜏div
  • 21. Temporal Superpixels • Superpixels for videos • Get temporally consistent superpixels Input SLIC CCS
  • 22. Temporal Superpixels • Initialization • To make temporally consistent superpixels • Estimate optical flows from 𝐼 𝑡−1 to 𝐼 𝑡 • Transfer the label of each superpixel by employing the average optical flow of the superpixel • Do not assign any labels to occluded or disoccluded pixels • Occluded pixel: a pixel mapped from multiple superpixels • Disoccluded pixel: a pixel mapped from no superpixel
  • 23. Temporal Superpixels • Temporal superpixel labeling • Performed at the pixel level only • Based on the energy function • 𝐸 𝑖, 𝑗 = 𝐸D 𝑖, 𝑗 + 𝛾𝐸L 𝑖, 𝑗 + 𝜂𝐸I 𝑖, 𝑗 × 𝐸T 𝑖, 𝑗 • 𝐸T 𝑖, 𝑗 : temporal contour constraint
  • 24. Temporal Superpixel Labeling • Temporal Contour constraint • Make superpixels temporally consistent • Make superpixels compatible with image contours • 𝐸T 𝑖, 𝑗, 𝑡 = 𝐸C 𝑖, 𝑗, 𝑡 × 𝜌 𝑖, 𝑗, 𝑡 • Relaxation factor 𝜌 𝑖, 𝑗, 𝑡 • 𝜌 𝑖, 𝑗, 𝑡 = ൞ 1 1+exp −𝜁×ℎ 𝑅𝑖 𝑡 , if 𝑙 𝑅𝑗 𝑡 ∈ ℒ 𝑖 𝑡 1, otherwise • ℒ 𝑖 𝑡 is the set of labels that are mapped to 𝑅𝑖 𝑡 from 𝐼 𝑡−1 • Relax 𝐸T 𝑖, 𝑗, 𝑡 when 𝑅𝑖 𝑡 does not contain object contour
  • 25. Merging, Splitting, and Relabeling • Merging and splitting • Prevent irregular superpixel size • When Τ𝐴 𝑘 𝑡 ҧ𝐴 is larger than 𝜏spl → split • Consider the biggest eigenvector of the spatial distribution • When Τ𝐴 𝑘 𝑡 ҧ𝐴 is smaller than 𝜏mer → merge • Merge to the nearest superpixel
  • 26. Merging, Splitting, and Relabeling • Relabeling • Avoid incorrect labeling • Because of occlusion or illumination variation • Define color consistency 𝐶 𝑘 • 𝐶 𝑘 = 𝐜1:𝑡−1 𝑆 𝑘 − 𝐜 𝑡 𝑆 𝑘 2 • If 𝐶 𝑘 is larger than 𝜏rel → relabel
  • 28. Experimental Results • Superpixel results • On BSDS500 dataset • CCS-wo-CC denotes proposed algorithm without the contour constraint ASA ↑ BR ↑ UE ↓
  • 29. Experimental Results • Temporal superpixel results • On SegTrack dataset SA2D ↑ BR2D ↑ UE2D ↓ SA3D ↑ BR3D ↑ UE3D ↓
  • 30. Experimental Results • Visual comparison of superpixel methods Input SEEDS LSC Proposed
  • 31. Experimental Results • Visual comparison of temporal superpixel methods TCS TSP Proposed
  • 32. Experimental Results • Run-times comparison • Superpixel algorithms • Temporal superpixel algorithms Turbopixels SLIC ERS LSC SEEDS MSLIC CCS Times(s) 8.09 0.26 1.52 0.34 0.06 0.36 0.97 sGBH SLIC TCS TSP CCS Times(s) 5.71 0.08 7.83 2.39 1.70
  • 33. Experimental Results • Application to video object segmentation • To superpixel-based video object segmentation method* • Use CCS instead of SLIC as a preprocessing • Intersection over union (IoU) is increased from 0.532 to 0.571 * W.-D. Jang and C.-S. Kim, Semi-supervised video object segmentation using multiple random walkers. In BMVC, 2016.
  • 34. Experimental Results • Application to video saliency detection • Postprocessing • Average the saliency values of the pixels in all frames, constituting each superpixel • Applied to HS* and DHSNet** * Q. Yan, L. Xu, J. Shi, and J. Jia, Hierarchical saliency detection. In CVPR, 2013. ** N. Liu and J. Han, DHSNet: Deep hierarchical saliency network for salient object detection. In CVPR, 2016.
  • 36. Conclusions • Contour-constrained superpixels (CCS) • Perform hierarchical refinement from block to pixel levels • Based on the contour constraint • Temporal superpixels • CCS algorithm for video processing • Use optical flow to obtain temporally consistent superpixels • Experimental results • CCS outperforms the state-of-the-art superpixel methods • Can be applied to object segmentation and saliency detection