Color Harmonization For Videos

30
Color Harmonization for Videos Nikhil Sawant and Niloy J. Mitra Dept. of CSE, Indian Institute of Technology, Delhi

Transcript of Color Harmonization For Videos

Page 1: Color Harmonization For Videos

Color Harmonization for Videos

Nikhil Sawant and Niloy J. Mitra

Dept. of CSE, Indian Institute of Technology, Delhi

Page 2: Color Harmonization For Videos

Color Harmonization ?

Color Harmonization for Videos Nilkhil Sawant and Niloy J. Mitra

Page 3: Color Harmonization For Videos

• Not all colors match• Colors can be ‘chaotic’ or ‘boring’• Overall impact can be disturbing• Notion of harmony depends on

place, time, context, etc.

Ultimate goal• Enhance visual harmony

Color Harmonization ?

Color Harmonization for Videos Nilkhil Sawant and Niloy J. Mitra

Page 4: Color Harmonization For Videos

• Videos are sets of images• Problematic due to:

– Rapidly changing scenes– Indoor and outdoor scenes– Changing illumination– Back to back un-harmonized scene

Ultimate goal• Enhance visual harmony of videos

Color Harmonization for Videos ?

Color Harmonization for Videos Nilkhil Sawant and Niloy J. Mitra

Page 5: Color Harmonization For Videos

Images

[Cohen-Or et al., Color Harmonization, SIGGRAPH, 2006]

Color Harmonization for Videos Nilkhil Sawant and Niloy J. Mitra

Page 6: Color Harmonization For Videos

• Templates for harmonization

• Need for optimization

Our approach

Color Harmonization for Videos Nilkhil Sawant and Niloy J. Mitra

Template I Template V Template L Template I

Template T Template Y Template X Template N

[Johannes Itten. The Art of Color: the subjective experience and objective rationale of color. Van Nostrand Reinhold, 1973]

Page 7: Color Harmonization For Videos

• Templates for harmonization

• Potential function:• P(θt, I) = [# image pixels in the shaded region]

• θot = argmax(P(θt, I)) θ є [0 – 360°]

• θH = argmax(P(θot, I)) T є {i, V, L, I, T, Y, X}

• Linear Color adjustment

Our approach

Color Harmonization for Videos Nilkhil Sawant and Niloy J. Mitra

θt

θot

Page 8: Color Harmonization For Videos

Color Harmonization for Videos Nilkhil Sawant and Niloy J. Mitra

ResultTemplate X

Page 9: Color Harmonization For Videos

ResultTemplate V

Color Harmonization for Videos Nilkhil Sawant and Niloy J. Mitra

Page 10: Color Harmonization For Videos

Segmentation problem• Splitting of color within same region

Color Harmonization for Videos Nilkhil Sawant and Niloy J. Mitra

Template V

Page 11: Color Harmonization For Videos

• Splitting of color within same region

• Solution - Find best position for splitting

Segmentation problem

Color Harmonization for Videos Nilkhil Sawant and Niloy J. Mitra

Page 12: Color Harmonization For Videos

Segmentation problem

Color Harmonization for Videos Nilkhil Sawant and Niloy J. Mitra

Page 13: Color Harmonization For Videos

Segmentation problem

• Less accurate but faster than traditional approaches

Nilkhil Sawant and Niloy J. MitraColor Harmonization for Videos

Page 14: Color Harmonization For Videos

Videos

Color Harmonization for Videos Nilkhil Sawant and Niloy J. Mitra

Page 15: Color Harmonization For Videos

CH extended for videos• Videos are sets of images (frames)

• Naïve approach: each frame independently harmonized

Color Harmonization for Videos Nilkhil Sawant and Niloy J. Mitra

Page 16: Color Harmonization For Videos

CH extended for videos• Videos are sets of images (frames)

• Naïve approach: each frame independently harmonized

• Flickering artifacts observed

• Noticeable change in color due to large variation in θ

• Need to correlate the adjacent frames

• Grouping of frames

Color Harmonization for Videos Nilkhil Sawant and Niloy J. Mitra

Page 17: Color Harmonization For Videos

Grouping

Color Harmonization for Videos Nilkhil Sawant and Niloy J. Mitra

Page 18: Color Harmonization For Videos

Grouping

• Mean color for group of frames

• Calculation of θg considering mean color• Frames under a group harmonized by θg

• No flickering within a group

• Flickering at the group junction

Color Harmonization for Videos Nilkhil Sawant and Niloy J. Mitra

Page 19: Color Harmonization For Videos

Overlapping

Color Harmonization for Videos Nilkhil Sawant and Niloy J. Mitra

Page 20: Color Harmonization For Videos

Overlapping

• Adjacent groups contain common frames• Similar approach to grouping• Common frames harmonized according mean θg

of two groups (smoother transition)• Flickering artifacts between group are reduced• Change of scene still cause flickering artifacts

Color Harmonization for Videos Nilkhil Sawant and Niloy J. Mitra

Page 21: Color Harmonization For Videos

Change of scene

• Change of camera

• Change of camera view port

• Change in illumination

• Larger change in colors

• We categorize all such frames as I-frames

Color Harmonization for Videos Nilkhil Sawant and Niloy J. Mitra

Page 22: Color Harmonization For Videos

Change of scene detection(I-frames)

• Calculating MSE for each frame

• MSE is measure of color change

• Threshold is selectedColor Harmonization for Videos Nilkhil Sawant and Niloy J. Mitra

Page 23: Color Harmonization For Videos

I-frames + overlapping

Color Harmonization for Videos Nilkhil Sawant and Niloy J. Mitra

• An I-frame causes start of new group

• Between two I-frames overlapping method used

I-frames + overlappingNaïve approach

Page 24: Color Harmonization For Videos

Results

Nilkhil Sawant and Niloy J. MitraColor Harmonization for Videos

Original Video Harmonized Video

Page 25: Color Harmonization For Videos

Two parameter variation• Slight variation in the template is allowed

• Allow template to adjust according to image hue histogram

• Harmonization with minimal color change

Color Harmonization for Videos Nilkhil Sawant and Niloy J. Mitra

Page 26: Color Harmonization For Videos

Template X

Two parameter variation

Color Harmonization for Videos Nilkhil Sawant and Niloy J. Mitra

Page 27: Color Harmonization For Videos

Two parameter variation

• Large deviation in template may affect the harmonization

Color Harmonization for Videos Nilkhil Sawant and Niloy J. Mitra

Page 28: Color Harmonization For Videos

Conclusion

• Faster technique for color harmonization of images

• Less reliable but faster technique for segmentation problem

• Introduction of harmonization technique to Videos

• Reduction in flickering artifacts

• Introduction of Two parameter variation method

Color Harmonization for Videos Nilkhil Sawant and Niloy J. Mitra

Page 29: Color Harmonization For Videos

Thank you

Original Video Harmonized Video

Results

Nilkhil Sawant and Niloy J. MitraColor Harmonization for Videos

Page 30: Color Harmonization For Videos

Thank you

Color Harmonization for Videos Nilkhil Sawant and Niloy J. Mitra