Question: Using Matlab The link: http://www.svcl.ucsd.edu/courses/ece271A/handouts/hw2.pdf 6. (computer) This week we will continue trying to classify our cheetah example. Once again we use the decomposition into

 Using Matlab The link: http://www.svcl.ucsd.edu/courses/ece271A/handouts/hw2.pdf 6. (computer) This week we will

Using Matlab

The link:

http://www.svcl.ucsd.edu/courses/ece271A/handouts/hw2.pdf

6. (computer) This week we will continue trying to classify our cheetah example. Once again we use the decomposition into 8 8 image blocks, compute the DCT of each block, and zig-zag scan. However, we are going to assume that the class-conditional densities are multivariate Gaussians of 64 dimensions Note: The training examples we used last time contained the absolute value of the DCT coefficients instead of the coefficients themselves. Please download the file TrainingSamplesDCT.8-new.mat and use it in this and all future exercises. For simplicity, I will still refer to it as TrainingsamplesDCTB.mat a) Using the training data in TrainingSamplesDCT 8.mat compute the histogram estimate of the prior Py (i), E cheetah, grass). Using the results of problem 2 compute the maximum likelihood estimate for the prior probabilities. Compare the result with the estimates that you obtained last week. If they are the same, interpret what you did last week. If they are different, explain the differences. b) Using the training data in TrainingSamplesDCT8.mat, compute the maximum likelihood estimates for the parameters of the class conditional densities Pxiy (cheetah) and Px y (rgrass) under the Gaussian assumption. Denoting by X {Xi, , x64) the vector of DCT coefficients, create 64 plots with the marginal densities for the two classes-PXkIY(Zk cheetah) and PXuIY(zk grass), k 1 , . . . , 64 - on each. Use different line styles for each marginal. Select, by visual inspection, what you think are the best 8 features for classification purposes and what you think are the worst 8 features (you can use the subplot command to compare several plots at a ti Hand in the plots of the marginal densities for the best-8 and worst-8 features (once again you can use subplot, this should not require more than two sheets of paper). In each subplot indicate the feature that it refers to c) Compute the Bayesian decision rule and classify the locations of the cheetah image usin) the 64-dimensional Gaussians, andii) the 8-dimensional Gaussians associated with the best 8 features. For the two cases, plot the classification masks and compute the probability of error by comparing with cheetah mask.bmp. Can you explain the results? 6. (computer) This week we will continue trying to classify our cheetah example. Once again we use the decomposition into 8 8 image blocks, compute the DCT of each block, and zig-zag scan. However, we are going to assume that the class-conditional densities are multivariate Gaussians of 64 dimensions Note: The training examples we used last time contained the absolute value of the DCT coefficients instead of the coefficients themselves. Please download the file TrainingSamplesDCT.8-new.mat and use it in this and all future exercises. For simplicity, I will still refer to it as TrainingsamplesDCTB.mat a) Using the training data in TrainingSamplesDCT 8.mat compute the histogram estimate of the prior Py (i), E cheetah, grass). Using the results of problem 2 compute the maximum likelihood estimate for the prior probabilities. Compare the result with the estimates that you obtained last week. If they are the same, interpret what you did last week. If they are different, explain the differences. b) Using the training data in TrainingSamplesDCT8.mat, compute the maximum likelihood estimates for the parameters of the class conditional densities Pxiy (cheetah) and Px y (rgrass) under the Gaussian assumption. Denoting by X {Xi, , x64) the vector of DCT coefficients, create 64 plots with the marginal densities for the two classes-PXkIY(Zk cheetah) and PXuIY(zk grass), k 1 , . . . , 64 - on each. Use different line styles for each marginal. Select, by visual inspection, what you think are the best 8 features for classification purposes and what you think are the worst 8 features (you can use the subplot command to compare several plots at a ti Hand in the plots of the marginal densities for the best-8 and worst-8 features (once again you can use subplot, this should not require more than two sheets of paper). In each subplot indicate the feature that it refers to c) Compute the Bayesian decision rule and classify the locations of the cheetah image usin) the 64-dimensional Gaussians, andii) the 8-dimensional Gaussians associated with the best 8 features. For the two cases, plot the classification masks and compute the probability of error by comparing with cheetah mask.bmp. Can you explain the results

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!