ECE 4470 Computer Vision Assignment

Assignment Help MATLAB Programming
Reference no: EM133115223

ECE 4470 Computer Vision - California State University, Bakersfield

Lab: K-Means for Color Segmentation

Goals

• Compare two color spaces (RGB and HSV)
• Use color spaces for segmentation
• Evaluate different distance measures

Technical Approach

Part 1: Color Space Representation Color Space Evaluation

Figure: Image for evaluation

You will need to load in the color image provided "fruit.jpg'. The image is read in using a RGB color space. Using subplot, plot the original image and the respective RGB color channels. Note the datatype and values that are used to represent the RGB color space. Pick out five fruits with different color and evaluate their representation is each color channel. For instance, white is R-high, G-high, B-high.

It will be useful to use the Data Cursor tool to navigate through the data of the image. It is activated using the following symbol: Newer versions renamed the Data Cursor to Data Tips under the Tools menu of a figure window.

Now you will convert your image to the HSV (Hue, Saturation, and Value) color space. Use the rgb2hsv function to convert from RGB. How is HSV represented in MATLAB? Consult the doc file and explain the datatype used. Do the same evaluation you did in the RGB space for the HSV space. Pick the same fruits. Note any differences you see between the two spaces.

Part 2: Color Segmentation

For the five fruit you have chosen we will now use the color domain to attempt segmentation of the specific fruits. To do this we will be using the Euclidean distance function:

d(q,p) = √(Σi=1n(qi - pi)2)

Where q and p are two points on the image and n is the number of dimensions in your color space. Note that this function weights each dimension equally, however this may not always be wanted. To do the segmentation, you will find a representative point in your fruit. After finding a representative you will find the distance of every pixel in the image to that representative. This will give you an image of color differences. Then you can threshold your image with the following.

D % Difference image for color space.

Fruit = zeros(size(D));

Fruit (D < T) = 1;

This will give an image where the image is one where the distance is less than T and zero if it is greater than T. You will need to find an optimal T and dimensions for each fruit. You may only need to use one dimension for some fruits, this will come from your evaluation in part one. Do this evaluation for all 5 fruits and for both color spaces. Remember what is represented in the HSV space, in some cases you may only need H or S. Usually V will not be needed. Note which fruits had error and why.

How did both color spaces fair in the segmentation? Was one of them clearly better? Explain.

Is there a better distance measure for completing these segmentations? If so, explain why it is better.

Attachment:- Computer Vision.rar

Reference no: EM133115223

Questions Cloud

What is the accrual accounting rate of return : The estimated useful life is 10 years, with no salvage value. Amaro's minimum expected return is 14 percent. What is the accrual accounting rate of return
Why the purchasing power parity may not hold in reality : Discuss why the purchasing power parity may not hold in reality.
How many years is the annuity : An annuity pays $100 each year. It is worth $507.57 today. The annual interest rate is 5 percent. How many years is the annuity?
Find the price of a call option on the stock : Find the price of a call option on the stock that has a stock price of $14 and that expires in 6 months. (Hint: Use daily compounding.)
ECE 4470 Computer Vision Assignment : ECE 4470 Computer Vision Assignment Help and Solution, California State University, Bakersfield - Assessment Writing Service
Determine the machines second year depreciation : The machine's useful life is estimated to be 5 years, or 210,000 units of product, Determine the machines second year depreciation
Healthcare leadership skills : List each step of the decision making process. Include the importance of each step of the decision-making process
Determine the overhead variance : During the year, 40,000 direct labor hours were worked. Actual overhead costs for the year were $340,000. Determine the overhead variance
Expected return and standard deviation : Consider two stocks, Stock D, with an expected return of 11 percent and a standard deviation of 26 percent, and Stock I, an international company, with an expec

Reviews

Write a Review

MATLAB Programming Questions & Answers

  Compute the machine epsilon for the floating point system

MTH2051/3051 Introduction to Computational Mathematics Assignment- Matlab & Finite Precision Arithmetic, Monash University, Australia. Compute machine epsilon

  Write a single program that calculates the geometric mean

Use MATLAB to write a single program that calculates the geometric mean, RMS average and harmonic mean for a set of numbers. Compare these values for each of the following sets of number.

  Prepare the matlab script code

Prepare the MatLab Script Code written for - create a row array with m elements consisting of all the integers from 1 to m. Use disp to display the resulting array. For m, use 15.

  Design model for thermostat by using either uppal or matlab

Design a model for thermostat by using either UPPAl or MATLAB and Modeling for House (room) Thermostat-Cyber physical system

  Prove that both results are indeed correct answers by cubing

Find the cube root of - 5, both by using the nthroot function and by rais-ing - 5 to the 1/3 power. Explain the difference in your answers. Prove that both results are indeed correct answers by cubing them and showing that they equal - 5.

  Find and plot the joint trajectories

ROBOTICS-INDUSTRIAL ROBOTS, ANALYSIS AND APPLICATIONS-Find and plot the joint trajectories which would move origin of the hand on a straight line

  Explore the design of a recursive digital filter

In this simulation we are going to explore the design of a recursive digital filter which might be usedvin a digital radio station. The sampling frequency used in digital radio (DAB) is either 48 kHz or 24 kHz and for the purposes of this simulation,

  Obtain the uncoded ber performance of bpsk modulation

Obtain the uncoded BER performance of BPSK modulation over AWGN and Rayleigh fading channels through computer simulation - Select a suitable range of Eb/NO so that you obtain the BER in the range of (approximately) 10-1 to 10-6 .

  To make things easy, just place the line makeclothes

To make things easy, just place the line makeClothes at the top of your script so you're guaranteed to have the correct acmeClothes array to work with.

  Do principal component analysis for assignment

Do principal component analysis for assignment using MATLAB -  Each sample is one excel file. The samples are the metabolites that are in leaf, branch, different species, roots, etc in this one type of tree.

  Write a script to solve the following systems of equations

Write a script to solve the following systems of equations using both matrix left division (\) and the inverse matrix method and Show that you have tested your MATLAB code appropriately

  Build a matlab birthday cake using the cylinder

Prepare for Project you should carefully read the Notes on Trajectory Formation that are available on Moddle.  As you read them, you should try out the concepts in MATLAB.

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