Euclidean distance analysis

Assignment Help Web Project
Reference no: EM13727673

This project involves human face recognition using Euclidean distance analysis. The heart of the approach is the creation of a user defined function that computes the similarity (i.e., Euclidean distance) between images. In this project you will also analyze the performance of that approach as a function of noise.
The dataset is posted on Isidore ("deck.mat"). The dataset consists of images of 40 difference people's faces with 10 distinct images of each face (for a total of 400 images).

Project Steps

1. Start by create a program called run_facial_recognition.m. The first step is load the deck and to divide the images into separate training and testing image sets. Use the first 9 images (1.pgm - 9.pgm) of each person for training and use the last image (10.pgm) for each person for testing.

2. The next step is to convert and to store each image as a column vector. Create matrices called training_data and testing_data such that the columns of those matrices are "columinized" images from the training and testing sets respectively. Hint: the size of training_data ought to be 10304 by 360 and the size of testing_data should be 10304 by 40.

3. Matching is done by finding the vector in the training set that has the minimum Euclidean distance to that of image/vector being tested. In order to accomplish that task, write a user defined function called compute_distance.m that computes the Euclidean distances between vectors. To be precise, the input arguments of the function should be a set of vectors (i.e., the training data) and a vector from the testing data. The function shall compute the distances between the test vector and all training vectors and return a total of 360 distances. The testing image/vector is declared to be the person in the training who's face vector gave the minimum Euclidean distance. Note that you get 9 tries to find a match for each person since the training set include 9 distinct examples of each person.

4. Devise a systematic means such that your program displays the current testing image and the one declared of a match side by side (use subplot(), image(), colormap(gray(256)) and pause as shown in class) as it cycles through the testing images.

5. Next, implement a way to measure the performance of the approach. The easiest way is to divide the number of correctly identified testing faces by the total

number of testing faces. Initiate another cycling process (separate to that of part 2.4) for this part of the project. In other words, no need to visualize the testing and matching images per iteration as the sole purpose of this part of the project is to quantify performance. You need to automate the scoring technique since it is a crucial component for the subsequent task.

6. Finally, you are to examine the performance of this approach subject to some levels of noise. Make use of the built-in MATLAB function imnoise() so as to add "salt & pepper" noise to the testing image beforehand (i.e., before computing it's distance with respect to the training images). Note that the noise needs to be added to the testing image and NOT the testing vector. You are then to convert the noisy image to a vector so that you can compute its distance. Loop over 100 distinct values ranging 0 to 1 for the level of additive noise and make note of the performance of the detection system for each of those cases. Use fprintf() to display the level of noise and corresponding performance at each iteration of the loop.

7. Provide a plot showing performance as a function of added level of noise.

What to Prepare and Submit

You are to prepare and submit a Word document and MATLAB files for this project.
Your MATLAB program should be organized as follows

  • A cell titled "Organize and prepare data" for parts 2.1 and 2.2
  • Another cell titled "Facial recognition using Euclidean distance" for parts 2.3 and 2.4
  • Another cell titled "Performance analysis" for part 2.5
  • Lastly, another cell titled "Performance analysis with respect to additive noise" for parts 2.6 and 2.7

 

Include the following in the Word document:

Question 1: Briefly describe the approach. It is a must that you include the equation used to compute Euclidean distance.

Question 2: Include an example of the training images and testing image for a person.

Question 3: Report the performance of the system in terms of the number of correct and incorrect matches for the case without noise.

Question: For any incorrectly classified faces (for the case without noise only), show the training and testing images for the correct person and the incorrectly matched person.

Reference no: EM13727673

Questions Cloud

What role do objective and subjective comprehension play : What role do objective and subjective comprehension play in Under Armour's ability to market its products by sponsoring up-and-coming athletes
Adaptive strategy or strategies : Select one (1) specific analytical tool that you can use to determine whether or not the adaptive strategy or strategies selected for your organization will be the most effective in helping the organization achieve its goals. Propose the manner in..
What is the overall effect on equilibrium price : The market for gasoline has changed in a couple significant ways over the last few years: new technologies have decreased the costs associated with producing gasoline, What is the overall effect on equilibrium price
Describe the business benefits of parameter estimation : You are a marketing analyst in a large grocery store chain. Your job entails developing a robust customer knowledge base utilizing the company's vast database of in-store purchases. Describe the business benefits of parameter estimation
Euclidean distance analysis : Start by create a program called run_facial_recognition.m. The first step is load the deck and to divide the images into separate training and testing image sets. Use the first 9 images (1.pgm - 9.pgm) of each person for training and use the last ..
How do china''s location contribute to chinese ethnocentrism : How do china's location contribute to chinese ethnocentrism?
Embarrassing the board about its lack of knowledge : How should I deliver my message without embarrassing the board about its lack of knowledge about human capital management?
What is human resource management : Prepare a 700- to 1,050-word paper using the articles and your personal experiences to address the following questions: Question 1: What is human resource management?
Who was wrote the music for west side story : 11. Which of the following composers wrote the music for West Side Story? Cole Porter, George M. Cohan, Jerome Kern and Leonard Bernstein.

Reviews

Write a Review

Web Project Questions & Answers

  Case study on usability of ipads and websites

The following report must be used for reference to complete this assignment. The Nielsen Norman Group published a report titled, "Usability of iPads and Websites." The report is a case study of the iPad usability

  Evaluation at astro bank

Project planning as well as discussion under section ‘How do you keep team members?' on page 137 of the Lientz text, Information Technology Project Management. Identify and critically analyse the criteria the company should use in evaluating the s..

  Develop a visual rendering depicting your design

Develop a visual rendering depicting your design through the use of Microsoft Visio or its open source alternative, Dia. Note: The graphically depicted solution is not included in the required page length.

  Discuss support operations that internally hosted website

Write clearly and concisely about Systems Analysis and Development topics using proper writing mechanics and technical style conventions.

  Create an android project

Design and create an application which will allow the user to calculate an IPv4 subnet range. The user must be able to enter a IPv4 address and subnet mask.

  Describe the differences in developing user interfaces

Describe the differences in developing user interfaces for different application environments and compare and contrast the different types of interactive environments.

  Provide a web based online application for admission

An SDD is a representation of a software system that is used as a medium for communicating software design information.

  Web development projects with database

Since the vast majority of web-development projects involve a database, do you think that computational activities should be performed there, or do you think they belong in the XML page or stylesheet?

  Create a one-page professional-looking personal website

Create a one-page professional-looking personal website using only HTML and CSS. You may build your site on any topic of your choosing.

  Create an html form and a corresponding java servlet

Construct an HTML form and a corresponding Java servlet that receives one or many parameters from the form and displays the result in a servlet generated dynamic page.

  Integrated project

Open the PHRE-ListingsBrochuredocument from your student data files and save it as [your initials] Integrated Project 4a

  Develop a project plan

Be sure to propose options and make decisions for these major security decisions and justify those decisions.

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd