object recognition and feature detection in images using ...what is image processing? method to...

22
Object Recognition and Feature Detection in Images Using MATLAB Sadhana Venkataraman, Farragut High School Yukai Tomsovic, West High School Ms. Gangotree Chakma CURENT Young Scholars Program 18 July 2016 Min Kao Building, University of Tennessee

Upload: others

Post on 02-Oct-2020

2 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: Object Recognition and Feature Detection in Images Using ...What is Image Processing? Method to perform operations on an image, in order to get an enhanced image or to extract useful

Object Recognition and Feature Detection in Images Using MATLAB

Sadhana Venkataraman, Farragut High SchoolYukai Tomsovic, West High School

Ms. Gangotree Chakma

CURENT Young Scholars Program18 July 2016

Min Kao Building, University of Tennessee

Page 2: Object Recognition and Feature Detection in Images Using ...What is Image Processing? Method to perform operations on an image, in order to get an enhanced image or to extract useful

Topics

➤ What is image processing?➤ Edge Detection

◖ Measuring properties➤ Shape Detection➤ Color Segmentation

◖ Manually◖ K-Means Clustering

➤ Feature Detection◖ Comparison between images

2

Page 3: Object Recognition and Feature Detection in Images Using ...What is Image Processing? Method to perform operations on an image, in order to get an enhanced image or to extract useful

Image Processing

➤ What is Image Processing?◖ Method to perform operations on an image, in order to get an

enhanced image or to extract useful information1

➤ Basic Steps:▪ Acquire and import image▪ Analyze and manipulate image▪ Output -- image, component of image, or report based on image

analysis

3

1Anbarjafari, Gholamreza. "Introduction to Image Processing." Sisu@UT. University of Tartu, n.d. Web. 13 June 2016.

Page 4: Object Recognition and Feature Detection in Images Using ...What is Image Processing? Method to perform operations on an image, in order to get an enhanced image or to extract useful

Edge Detection

1. Creating a binary image◖ Otsu’s Method◖ Function im2bw

2. Labeling connected components◖ Function bwlabel

3. Measuring Properties◖ Area◖ Identify types of objects

3

Page 5: Object Recognition and Feature Detection in Images Using ...What is Image Processing? Method to perform operations on an image, in order to get an enhanced image or to extract useful

Edge Detection, Cont’d

5

figure 1: original image, gray scale image

figure 2: binary image

Page 6: Object Recognition and Feature Detection in Images Using ...What is Image Processing? Method to perform operations on an image, in order to get an enhanced image or to extract useful

Shape Detection➤ Use Code imdistline to Measure Radii of Circle(s)

◖ Radii of circles are measured by the number of pixels ➤ Set a Range From the Smallest to Largest Radius

◖ Use imfindcircles code ➤ Color of Shape

◖ Adjust object polarity to ‘bright’ or ‘dark’ depending on the background color

6

Page 7: Object Recognition and Feature Detection in Images Using ...What is Image Processing? Method to perform operations on an image, in order to get an enhanced image or to extract useful

Shape Detection, Cont’d

7

Page 8: Object Recognition and Feature Detection in Images Using ...What is Image Processing? Method to perform operations on an image, in order to get an enhanced image or to extract useful

Practical Uses of Shape Detection

➤ Astronomy◖ Detecting patterns in waveforms◖ Classification of stars and galaxies

➤ Medicine◖ Medical imaging to detect sickness based on cell shape

➤ Archaeology◖ To find missing or similar objects

8

Page 9: Object Recognition and Feature Detection in Images Using ...What is Image Processing? Method to perform operations on an image, in order to get an enhanced image or to extract useful

Color Segmentation

➤ Pixel ranges◖ Using for loop to

iterate through each row of the pixel matrix

◖ If loop to group centers into colors by the range of pixel

9

Page 10: Object Recognition and Feature Detection in Images Using ...What is Image Processing? Method to perform operations on an image, in order to get an enhanced image or to extract useful

Counting Colors

10

yellow blueredgreen

Page 11: Object Recognition and Feature Detection in Images Using ...What is Image Processing? Method to perform operations on an image, in order to get an enhanced image or to extract useful

Color Segmentation: K-Means Clustering

11

1. RGB to L*a*b color space

2. Classify colors in ‘a*b*’ space with K-means clustering

3. Label pixels and separate objects

Page 12: Object Recognition and Feature Detection in Images Using ...What is Image Processing? Method to perform operations on an image, in order to get an enhanced image or to extract useful

K-Means Clustering

12

Figure 1. Original Image of watercolor paint

Figure 2. First cluster of color

Figure 3. Second cluster of color

Figure 4. Third cluster of color

Page 13: Object Recognition and Feature Detection in Images Using ...What is Image Processing? Method to perform operations on an image, in order to get an enhanced image or to extract useful

Practical Uses of Color Segmentation

➤ Biology◖ Distinguish different types of tissue, cells, tumor borders, etc.◖ Medical thermography in detecting breast cancer,

tendon/ligament injuries, areas of poor circulation

13

Page 14: Object Recognition and Feature Detection in Images Using ...What is Image Processing? Method to perform operations on an image, in order to get an enhanced image or to extract useful

Feature Detection

➤ Distort Image by Rotating

➤➤ Locate Features in Each Image

14

Page 15: Object Recognition and Feature Detection in Images Using ...What is Image Processing? Method to perform operations on an image, in order to get an enhanced image or to extract useful

Feature Detection, Cont’d

➤ Match the Corresponding Points on Both Images

➤ Write an If Statement to Determine Whether the Images are the Same

15

Page 16: Object Recognition and Feature Detection in Images Using ...What is Image Processing? Method to perform operations on an image, in order to get an enhanced image or to extract useful

Feature Detection, Cont’d

16

Page 17: Object Recognition and Feature Detection in Images Using ...What is Image Processing? Method to perform operations on an image, in order to get an enhanced image or to extract useful

Feature Detection, Cont’d

17

Page 18: Object Recognition and Feature Detection in Images Using ...What is Image Processing? Method to perform operations on an image, in order to get an enhanced image or to extract useful

Feature Detection, Cont’d

18

Page 19: Object Recognition and Feature Detection in Images Using ...What is Image Processing? Method to perform operations on an image, in order to get an enhanced image or to extract useful

Feature Detection, Cont’d

19

Page 20: Object Recognition and Feature Detection in Images Using ...What is Image Processing? Method to perform operations on an image, in order to get an enhanced image or to extract useful

Conclusion

➤ Our research -- foundations for more advanced technology

➤ Further applications of image processing◖ Medical field

▪ PET Scans▪ X-Ray Imaging

◖ Space Image Processing▪ Hubble Space Telescope Images

◖ Automatic Character Recognition▪ Scanning license plates and zip codes

20

Page 21: Object Recognition and Feature Detection in Images Using ...What is Image Processing? Method to perform operations on an image, in order to get an enhanced image or to extract useful

Questions and Answers

21

Page 22: Object Recognition and Feature Detection in Images Using ...What is Image Processing? Method to perform operations on an image, in order to get an enhanced image or to extract useful

Acknowledgements

This work was supported primarily by the ERC Program of the National Science Foundation and DOE under NSF Award Number EEC-1041877.

Other US government and industrial sponsors of CURENT research are also gratefully acknowledged.

22