color segmentation
DESCRIPTION
Color Segmentation. View the YIQ color space: -Y=luminance, I=hue, Q=saturation Human skin occupy a small portion of the I and Q spaces. From training images, compare and contrast hue and saturation of: faces only vs. entire image. Hue and Saturation. Faces. Training Image. - PowerPoint PPT PresentationTRANSCRIPT
![Page 1: Color Segmentation](https://reader034.vdocuments.us/reader034/viewer/2022051517/568157c4550346895dc54d04/html5/thumbnails/1.jpg)
Color Segmentation
• View the YIQ color space:-Y=luminance, I=hue, Q=saturation
• Human skin occupy a small portion of the I and Q spaces.
• From training images, compare and contrast hue and saturation of:
faces only vs. entire image
![Page 2: Color Segmentation](https://reader034.vdocuments.us/reader034/viewer/2022051517/568157c4550346895dc54d04/html5/thumbnails/2.jpg)
Hue and Saturation
-150 -100 -50 0 50 100 1500
2
4
6
8
10
12
14x 10
5Histogram of Q Components of Training
7.jpg
Q DistributionTraining Image Faces
![Page 3: Color Segmentation](https://reader034.vdocuments.us/reader034/viewer/2022051517/568157c4550346895dc54d04/html5/thumbnails/3.jpg)
• Skin elements remain.
• Holes in faces later eliminated with hole-filling
Mask After Color Segmentation
![Page 4: Color Segmentation](https://reader034.vdocuments.us/reader034/viewer/2022051517/568157c4550346895dc54d04/html5/thumbnails/4.jpg)
Mask After Object Removal
Based on size distribution of remaining objects, remove small ones
![Page 5: Color Segmentation](https://reader034.vdocuments.us/reader034/viewer/2022051517/568157c4550346895dc54d04/html5/thumbnails/5.jpg)
Correlation Template Matching I – Average Face
• First attempt – Average face• Taking average of all faces from ground truth masks
• Results – Less than satisfactory. – Face with distinguishing features blurred– Correlation separation is not high, identifies many skin
color regions (clothing, background) as false positives.
N
iixN
H1
1
![Page 6: Color Segmentation](https://reader034.vdocuments.us/reader034/viewer/2022051517/568157c4550346895dc54d04/html5/thumbnails/6.jpg)
Correlation Template Matching II – Edge detection
• After color segmentation, most remaining regions are composed of skin-color tones.
• Distinguishing features resides in edges– Use Canny edge filter on black-white images for extraction
– Composed average face using edges, scaled to mean zero
![Page 7: Color Segmentation](https://reader034.vdocuments.us/reader034/viewer/2022051517/568157c4550346895dc54d04/html5/thumbnails/7.jpg)
Correlation comparison• Average face template
– Poor separation between faces
– Difficult to identify face centroid
• Edge face template– Better separation between faces
– Peaks (centroid) more easily identifiable
![Page 8: Color Segmentation](https://reader034.vdocuments.us/reader034/viewer/2022051517/568157c4550346895dc54d04/html5/thumbnails/8.jpg)
Region counting - Supplementary method
• The edge outlines have clearly identifiable connected regions
• Can be counted, and statistics used to help reject clutter
Number of regions: 14 Number of regions: 43
![Page 9: Color Segmentation](https://reader034.vdocuments.us/reader034/viewer/2022051517/568157c4550346895dc54d04/html5/thumbnails/9.jpg)
Detection Algorithm– Correlation – Degree of matching
– Dimensions – height, width
– Region counting – complexity of image
Correlation Dimensions Region counting
Correlation Dimensions Region countingMulti-face detection
Single face
Multiple faces
![Page 10: Color Segmentation](https://reader034.vdocuments.us/reader034/viewer/2022051517/568157c4550346895dc54d04/html5/thumbnails/10.jpg)
Multiple Faces within a Single Region
• Search for peaks in correlation
• A single face may give multiple peaks
• Estimate expected number of faces within Region
• Do not want repeats
![Page 11: Color Segmentation](https://reader034.vdocuments.us/reader034/viewer/2022051517/568157c4550346895dc54d04/html5/thumbnails/11.jpg)
Find Largest Peak
• Find largest peak in correlation
• Location of first peak
• Exclude area of radius R (about peak) from rest of search
• R determined dynamically from size of region and number of expected faces
![Page 12: Color Segmentation](https://reader034.vdocuments.us/reader034/viewer/2022051517/568157c4550346895dc54d04/html5/thumbnails/12.jpg)
Next Peak
• Find next largest peak
• Exclude area (of radius R) surrounding both peaks from further search
• Continue search in this manner until desired number of peaks found
![Page 13: Color Segmentation](https://reader034.vdocuments.us/reader034/viewer/2022051517/568157c4550346895dc54d04/html5/thumbnails/13.jpg)
Find Multiple Faces
• Stop search if there are no more peaks to be found
(Number of peaks found can be fewer than estimate)
• Each peak location corresponds to face center location
![Page 14: Color Segmentation](https://reader034.vdocuments.us/reader034/viewer/2022051517/568157c4550346895dc54d04/html5/thumbnails/14.jpg)
Conclusion
• Reasonably successful performance– Misses
– False positives/repeats
• Algorithm relies heavily on Color Segmentation and Edge Extraction
• Difficulty with closely-spaced faces– Separation
– Detecting multiple faces in single region (correct estimate)
![Page 15: Color Segmentation](https://reader034.vdocuments.us/reader034/viewer/2022051517/568157c4550346895dc54d04/html5/thumbnails/15.jpg)
![Page 16: Color Segmentation](https://reader034.vdocuments.us/reader034/viewer/2022051517/568157c4550346895dc54d04/html5/thumbnails/16.jpg)
17
16
15
14
13
12
11
10
9
8
7
6
2 (0)5 (13)5
2 (0)3 (18)4
2 (0)3 (18)3
2 (0)1 (20)2
1 (1)2 (19)1
Gender RecognitionFace Detection
17
16
15
14
13
12
11
10
9
8
7
6
2 (0)5 (13)5
2 (0)3 (18)4
2 (0)3 (18)3
2 (0)1 (20)2
1 (1)2 (19)1
Gender RecognitionFace Detection