Top Banner
Kylie Gorman WEEK 1-2 REVIEW
35

Kylie Gorman WEEK 1-2 REVIEW. CONVERTING AN IMAGE FROM RGB TO HSV AND DISPLAY CHANNELS.

Jan 29, 2016

Download

Documents

Maryann Sims
Welcome message from author
This document is posted to help you gain knowledge. Please leave a comment to let me know what you think about it! Share it to your friends and learn new things together.
Transcript
Page 1: Kylie Gorman WEEK 1-2 REVIEW. CONVERTING AN IMAGE FROM RGB TO HSV AND DISPLAY CHANNELS.

Kylie Gorman

WEEK 1-2 REVIEW

Page 2: Kylie Gorman WEEK 1-2 REVIEW. CONVERTING AN IMAGE FROM RGB TO HSV AND DISPLAY CHANNELS.

CONVERTING AN IMAGE FROM RGB

TO HSV AND DISPLAY

CHANNELS

Page 3: Kylie Gorman WEEK 1-2 REVIEW. CONVERTING AN IMAGE FROM RGB TO HSV AND DISPLAY CHANNELS.

Original HSV Version

Page 4: Kylie Gorman WEEK 1-2 REVIEW. CONVERTING AN IMAGE FROM RGB TO HSV AND DISPLAY CHANNELS.

Hue Saturation

Value

Page 5: Kylie Gorman WEEK 1-2 REVIEW. CONVERTING AN IMAGE FROM RGB TO HSV AND DISPLAY CHANNELS.

EDGE DETECTION

Page 6: Kylie Gorman WEEK 1-2 REVIEW. CONVERTING AN IMAGE FROM RGB TO HSV AND DISPLAY CHANNELS.

Sobel and Roberts

Sobel X Sobel Y Roberts X Roberts Y

Page 7: Kylie Gorman WEEK 1-2 REVIEW. CONVERTING AN IMAGE FROM RGB TO HSV AND DISPLAY CHANNELS.

Canny Edge Detector

1. Smooth image with Gaussian filter2. Compute derivative of filtered image3. Find magnitude and orientation of gradient4. Apply “Non-maximum Suppression”5. Apply “Hysteresis Threshold”

Page 8: Kylie Gorman WEEK 1-2 REVIEW. CONVERTING AN IMAGE FROM RGB TO HSV AND DISPLAY CHANNELS.

HARRIS CORNER DETECTOR

Page 9: Kylie Gorman WEEK 1-2 REVIEW. CONVERTING AN IMAGE FROM RGB TO HSV AND DISPLAY CHANNELS.

Harris Corner Steps•Compute x and y derivatives of image•Compute products of derivatives at every pixel: Ix2 Ixy Iy2•Compute the sums of the products of the derivatives at each pixel•Place each pixel into a matrix H•Compute R = Det(H) – k(Trace(H))^2•Threshold on value of R

Page 10: Kylie Gorman WEEK 1-2 REVIEW. CONVERTING AN IMAGE FROM RGB TO HSV AND DISPLAY CHANNELS.

My Own Implementation

Page 11: Kylie Gorman WEEK 1-2 REVIEW. CONVERTING AN IMAGE FROM RGB TO HSV AND DISPLAY CHANNELS.

Harris Corner Function in MATLAB

Page 12: Kylie Gorman WEEK 1-2 REVIEW. CONVERTING AN IMAGE FROM RGB TO HSV AND DISPLAY CHANNELS.

SCALE INVARIANT FEATURE

TRANSFORM (SIFT)

Page 13: Kylie Gorman WEEK 1-2 REVIEW. CONVERTING AN IMAGE FROM RGB TO HSV AND DISPLAY CHANNELS.

SIFT Algorithm: Finding Keypoints• Use Difference-of-Gaussian Function• Good approximation of Laplacian of Gaussian, but faster to

compute• Construct Scale Space

• Key Point Localization• Use Scale Space to Find Extrema• Throw Out Poorly Defined Peaks

• Orientation Assignment• Multiple Orientations Improves Stability of Matching

• Keypoint Descriptor• Computed from Local Image Gradients

Page 14: Kylie Gorman WEEK 1-2 REVIEW. CONVERTING AN IMAGE FROM RGB TO HSV AND DISPLAY CHANNELS.

SIFT using Vl_feat

Page 15: Kylie Gorman WEEK 1-2 REVIEW. CONVERTING AN IMAGE FROM RGB TO HSV AND DISPLAY CHANNELS.

Using SIFT to Match Same Image

Page 16: Kylie Gorman WEEK 1-2 REVIEW. CONVERTING AN IMAGE FROM RGB TO HSV AND DISPLAY CHANNELS.

Different Images

Page 17: Kylie Gorman WEEK 1-2 REVIEW. CONVERTING AN IMAGE FROM RGB TO HSV AND DISPLAY CHANNELS.

SUPPORT VECTOR MACHINES (SVM)

Page 18: Kylie Gorman WEEK 1-2 REVIEW. CONVERTING AN IMAGE FROM RGB TO HSV AND DISPLAY CHANNELS.

Linear SVM

Page 19: Kylie Gorman WEEK 1-2 REVIEW. CONVERTING AN IMAGE FROM RGB TO HSV AND DISPLAY CHANNELS.

Multi-Class SVM

Page 20: Kylie Gorman WEEK 1-2 REVIEW. CONVERTING AN IMAGE FROM RGB TO HSV AND DISPLAY CHANNELS.

OPTICAL FLOW

Page 21: Kylie Gorman WEEK 1-2 REVIEW. CONVERTING AN IMAGE FROM RGB TO HSV AND DISPLAY CHANNELS.

Optical Flow with Lucas-Kanade• The Optical Flow Equation fxu + fyv = -ft has 2 unknown variables• 3x3 window gives 9 equations with 2 unknown variables

• Put equations into matrix to get Au = ft

• To solve, multiply by the transpose of A: • ATAu = ATft

• u = (ATA)-1AT ft

• Least Square Fit• Solve for u and v

Page 22: Kylie Gorman WEEK 1-2 REVIEW. CONVERTING AN IMAGE FROM RGB TO HSV AND DISPLAY CHANNELS.

Lucas-Kanade with Images

Page 23: Kylie Gorman WEEK 1-2 REVIEW. CONVERTING AN IMAGE FROM RGB TO HSV AND DISPLAY CHANNELS.

Lucas-Kanade with Video

Original Clip: http://www.youtube.com/watch?v=y6r8i_008SU

Page 24: Kylie Gorman WEEK 1-2 REVIEW. CONVERTING AN IMAGE FROM RGB TO HSV AND DISPLAY CHANNELS.

Lucas-Kanade with Vector Results

Page 25: Kylie Gorman WEEK 1-2 REVIEW. CONVERTING AN IMAGE FROM RGB TO HSV AND DISPLAY CHANNELS.

With Roberts Derivative

Resized Image to ½

Original

Resized Image to ¼

Original

Page 26: Kylie Gorman WEEK 1-2 REVIEW. CONVERTING AN IMAGE FROM RGB TO HSV AND DISPLAY CHANNELS.

With Sobel Derivative

Resized Image to ½ Original

Resized Image to ¼ Original

Page 27: Kylie Gorman WEEK 1-2 REVIEW. CONVERTING AN IMAGE FROM RGB TO HSV AND DISPLAY CHANNELS.

ADA BOOST

Page 28: Kylie Gorman WEEK 1-2 REVIEW. CONVERTING AN IMAGE FROM RGB TO HSV AND DISPLAY CHANNELS.

ADA Boost• Expert is a pattern and a threshold• Convolve an image with pattern and plot value on a number line• Search for threshold

Page 29: Kylie Gorman WEEK 1-2 REVIEW. CONVERTING AN IMAGE FROM RGB TO HSV AND DISPLAY CHANNELS.

Face Detection

Page 30: Kylie Gorman WEEK 1-2 REVIEW. CONVERTING AN IMAGE FROM RGB TO HSV AND DISPLAY CHANNELS.

BAG OF WORDS/ FEATURES

Page 31: Kylie Gorman WEEK 1-2 REVIEW. CONVERTING AN IMAGE FROM RGB TO HSV AND DISPLAY CHANNELS.

Bag of Words/ Features• Step One: Feature Extraction• Extract Regions (SIFT, Harris)• Compute Descriptors (SIFT)

• Step Two: Quantization• Find Clusters and Frequencies (K-means)

• Step Three: Classification• Compute Distance Matrix• Classification (SVM)

Page 32: Kylie Gorman WEEK 1-2 REVIEW. CONVERTING AN IMAGE FROM RGB TO HSV AND DISPLAY CHANNELS.
Page 33: Kylie Gorman WEEK 1-2 REVIEW. CONVERTING AN IMAGE FROM RGB TO HSV AND DISPLAY CHANNELS.

PROJECT POSSIBILITIES

Page 34: Kylie Gorman WEEK 1-2 REVIEW. CONVERTING AN IMAGE FROM RGB TO HSV AND DISPLAY CHANNELS.

Final Project• Project: Color-Attributes-Related Image Retrieval• Graduate Student: Yang Zhang• Goal: Enable people to retrieve an image according to an object with attributes or attributes alone. The project will focus on color as the starting attribute. • Program: MATLAB

Page 35: Kylie Gorman WEEK 1-2 REVIEW. CONVERTING AN IMAGE FROM RGB TO HSV AND DISPLAY CHANNELS.

Steps• 1. Validating Model: Download other code and compare it to our own code.• 2. Coding: Add more features to the system the improve its performance.• 3. Collecting Dataset: There are not any existing color image datasets on the Internet. Use automatic image collecting tool to create our own color object dataset. • 4. Possible Bonus: Implement novel ideas about general attribute image retrieval system. Determine if it is effective or not.