[SOLVED] CS6643 Homework4-Discriminant functions for a two-class classification

35.00 $

Category:
Click Category Button to View Your Next Assignment | Homework

You will receive the following solution file(s) instantly after successful payment:

zip file icon Homework4-si9t95.zip (3119.7 KB)
Assignment Instructions Updated Recently? Submit Below and we will provide new Solution!
Submit New Instructions
🔒 Securely Powered by:
Secure Checkout
5/5 - (1 vote)
  1.  The discriminant functions for a two-class classification problem are given below:

Class 1:    𝐷𝐷1(𝑥𝑥) = 𝑥𝑥12 + 𝑥𝑥1 + 𝑥𝑥2 + 4         Class 2:    𝐷𝐷2(𝑥𝑥) = 𝑥𝑥1 + 2𝑥𝑥2 + 3

  • Find the equation of the decision boundary between the two classes.
  • Plot the equation you have found on a graph and label the regions on either side of the plot with 𝜔𝜔1 if samples within the region belong to class 1, and 𝜔𝜔2 if samples within the region belong to class 2.
  1.  We would like to use a minimum-distance classifier formulated using linear discriminant functions 𝐷𝐷𝑖𝑖(𝑋𝑋) to classify input X into one of three classes. Input X and the prototype vectors for the three classes are given below:

X = xx12 ,   R1 =32..50 , R2 =−02.5.5 ,    R3 =−23.5

  • Write the mathematical formulas for the discriminant functions 𝐷𝐷𝑖𝑖(𝑋𝑋) for the three classes.
  • Classify the input X = −57.5.0 into one of the three classes using your discriminant

functions in (a).

  1. In face recognition using eigenfaces, we use a set of training face images to derive the eigenface matrix 𝑈𝑈 that forms the face space. (a) Given the eigenface matrix U, write the formula for computing the PCA coefficients of an input face image (b) Suppose 20 training images, each of size 360 × 480  (height × width), were used to derive U, what is the dimension of U and what is the dimension of the computed PCA coefficient?
  2.  We would like to use the unsigned representation of the Histogram of Oriented Gradients (HOG) descriptor to detect human in images.
  • What is the dimension of the descriptor if we assume the following parameter settings: detection window size = 136 x 80 pixels (rows x columns), cell size = 8 x 8 pixels, block size = 2 x 2 cells, block overlap = 8 pixels, and number of histogram bins per cell = 9.
  • The bin centers Center(i) for the 9 histogram bins are given in the table below. Given the gradient magnitude M and gradient angle 𝜃𝜃 of an edge that lies between two bin centers

Center(i) and Center(j), with 𝑗𝑗 = 𝑖𝑖 + 1 for 𝑖𝑖 = 1 𝑡𝑡𝑡𝑡 8, 𝑗𝑗 = 1 for 𝑖𝑖 = 9.  derive the formulas that allow you to compute the increments to histogram bins 𝐻𝐻(𝑖𝑖) and 𝐻𝐻(𝑗𝑗).  The input gradient 𝜃𝜃 can range from 0 to 360 degrees. If 𝜃𝜃 is greater than or equal to 180, subtract by 180 first. Your formulas should be expressed in terms of

𝑀𝑀, 𝜃𝜃, 𝑖𝑖, 𝑗𝑗, 𝐶𝐶𝐶𝐶𝐶𝐶𝑡𝑡𝐶𝐶𝐶𝐶(𝑖𝑖), 𝐶𝐶𝐶𝐶𝐶𝐶𝑡𝑡𝐶𝐶𝐶𝐶(𝑗𝑗), 𝐻𝐻(𝑖𝑖) and 𝐻𝐻(𝑗𝑗), and should be able to handle angles that lie between bin centers 9 and 1. You can give more than one formulas.

  • Given the gradient magnitudes and gradient angles of an 8 x 8 cell as shown in the figures below, compute the histogram of the cell (before block normalization.)

 

Bin # 1 2 3 4 5 6 7 8 9
Center(i) (in degrees) 0 20 40 60 80 100 120 140 160

 

0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0
0 100 0 0 0 0 0 0
0 0 200 0 0 0 0 0
0 0 0 0 160 0 0 0
0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0

            Gradient Magnitudes

 

200 45 23 98 130 260 255 250
125 295 85 90 130 265 249 240
123 35 85 95 125 260 250 240
100 90 45 90 120 265 240 230
95 99 105 106 355 120 100 110
90 100 110 120 120 130 125 120
85 90 100 110 110 120 120 110
80 80 100 110 100 100 100 110

                    Gradient Angles

 

 

 

 

 

  • Homework4-si9t95.zip