Sketch Recognition, Fall 2006, Instructor: Tracy Hammond

Rubine Homework Debugging Help

Shape Images

Shape 1

shape1

Shape 2

shape2

Shape 3

shape3

Shape 4

shape4

Shape 5

shape5

Shape 6

shape6

Shape 7

shape7

Shape 8

shape8

Rubine Features for Random Shapes

      shape 1      shape 2      shape 3      shape 4      shape 5      shape 6      shape 7      shape 8   
     -0.89822     -0.44721            0    -0.090536       0.5145     -0.39156     -0.24254      0.89443  f1  (cosine of start angle)
      0.43955     -0.89443            1      0.99589     -0.85749      0.92015      0.97014      0.44721  f2  (sine of start angle)
       271.76       229.38       457.83        245.6       518.82       505.89       255.01       246.34  f3  (length of bounding box diagonal)
      0.82704      0.83474       0.6553       0.8286       0.6142      0.66208        1.563     0.052796  f4  (angle of bounding box diagonal)
       115.88       115.55       102.14        73.79       244.63       249.16          255       246.34  f5  (distance from start to end point)
     -0.36245     -0.91735      0.94966      0.44721     -0.44558      0.64216            0      0.99861  f6  (cosine of angle from start to end point)
        0.932      0.39809      0.31329      0.89443     -0.89524      0.76657            1     0.052772  f7  (sine of angle from start to end point)
       610.44       459.76       966.89       528.37       1185.3       1122.4       255.34       248.71  f8  (total stroke length)
       6.2832        7.854      -1.5708       1.1071  4.7184e-016     -0.46365            0            0  f9  (total relative rotation)
       9.4248       8.2584       8.5713       8.0603       11.425       10.653      0.78154       6.1104  f10 (total absolute rotation - movement)
       4.7736       2.8019       2.5113       3.9516       4.0425       6.5065      0.16924       6.3812  f11 (total rotation squared - sharpness)
       4.2756       3.7227       49.316       8.6445       31.941       25.391       5.6406       5.6445  f12 (max speed)
          813          515          812          828         1156         1531          438          531  f13 (total time)

Points left in Shape 1 after removing duplicate xy values (size 46 points):

                       626                       159             1156959168983
                       624                       159             1156959169108
                       532                       205             1156959169218
                       521                       222             1156959169233
                       514                       235             1156959169249
                       510                       251             1156959169265
                       509                       268             1156959169265
                       509                       282             1156959169280
                       511                       297             1156959169296
                       516                       314             1156959169311
                       523                       325             1156959169327
                       533                       335             1156959169343
                       546                       344             1156959169358
                       557                       350             1156959169358
                       569                       356             1156959169374
                       584                       358             1156959169390
                       599                       359             1156959169405
                       612                       359             1156959169421
                       630                       353             1156959169436
                       655                       344             1156959169452
                       668                       337             1156959169452
                       677                       332             1156959169468
                       681                       327             1156959169483
                       685                       322             1156959169499
                       689                       315             1156959169515
                       693                       302             1156959169530
                       693                       292             1156959169546
                       693                       279             1156959169546
                       690                       264             1156959169561
                       686                       253             1156959169577
                       681                       245             1156959169593
                       672                       240             1156959169608
                       660                       236             1156959169624
                       648                       235             1156959169640
                       636                       235             1156959169640
                       624                       237             1156959169655
                       614                       240             1156959169671
                       604                       243             1156959169686
                       598                       246             1156959169702
                       594                       249             1156959169718
                       590                       254             1156959169733
                       588                       257             1156959169749
                       585                       262             1156959169749
                       585                       265             1156959169765
                       585                       267             1156959169780
                       584                       267             1156959169796

Change in rotation for shape 1 after removing duplicate xy values (size 44)

         0.463647609000806
         0.532843887619389
        0.0803634612551205
         0.248962705792717
         0.186222840411141
        0.0587558227157227
         0.132551532296674
         0.153499909420644
         0.280677775806188
         0.218668945873942
         0.179853499792478
          0.10619794192484
         0.035699112679324
         0.331096076704132
        0.0659833685208502
        0.0665681637758238
         0.321750554396642
        0.0238050261850699
         0.148385788337869
        0.0131571354727557
         0.388956880179007
                         0
          0.15559482797703
         0.220647182660344
         0.298498931586179
                         0
         0.197395559849881
         0.151375443734026
         0.209828311759655
         0.505098507058997
         0.185347949995695
         0.238609322508201
        0.0831412318884412
         0.165148677414627
          0.12630811706324
                         0
         0.172190814522939
         0.179853499792478
          0.25255427577806
        0.0867383386759851
        0.0475831032769834
         0.540419500270584
                         0
          -1.5707963267949                       

Feature Vector Mean for the letter `a'

     -0.75557
     -0.54449
       100.36
      0.81673
       61.014
      0.16101
      0.97718
       254.04
       6.0273
       9.3618
       4.8573
       1.6352
       798.93

Normalized Covariance Matrix for the letter `a'

  Columns 1 through 7 
     0.068163    -0.061091     -0.75096    0.0053095      -1.0298    0.0068213   -0.0019073
    -0.061091     0.073959      0.25997   -0.0092158      0.72687   -0.0046386    0.0021039
     -0.75096      0.25997       220.25      0.38006       220.79      0.19439    -0.095736
    0.0053095   -0.0092158      0.38006     0.008471      0.59835   -0.0054692   0.00075607
      -1.0298      0.72687       220.79      0.59835       321.06      0.11741    -0.094898
    0.0068213   -0.0046386      0.19439   -0.0054692      0.11741     0.019731   -0.0037666
   -0.0019073    0.0021039    -0.095736   0.00075607    -0.094898   -0.0037666   0.00083606
      -1.7916      0.52951       616.31      0.72936       587.23       0.1671     -0.22862
      0.19594     -0.17973      0.30033     0.021173       2.0425     0.056675       -0.015
      0.40881     -0.46167       3.4404     0.011047       17.957      0.24486     -0.06096
      0.46657     -0.56698       10.998     0.007477       25.204      0.26694    -0.074813
    -0.044031     0.015782       4.7836     0.032497        8.531     0.037383   -0.0070913
       10.495      -11.911       262.65      -1.1785       335.41        8.119      -1.7555

  Columns 8 through 13 
      -1.7916      0.19594      0.40881      0.46657    -0.044031       10.495
      0.52951     -0.17973     -0.46167     -0.56698     0.015782      -11.911
       616.31      0.30033       3.4404       10.998       4.7836       262.65
      0.72936     0.021173     0.011047     0.007477     0.032497      -1.1785
       587.23       2.0425       17.957       25.204        8.531       335.41
       0.1671     0.056675      0.24486      0.26694     0.037383        8.119
     -0.22862       -0.015     -0.06096    -0.074813   -0.0070913      -1.7555
       1943.2      -3.3189       5.2542       36.102       6.3689       215.01
      -3.3189      0.85811       2.0909        2.331      0.13393        61.27
       5.2542       2.0909       9.6974       11.434      0.93107       214.76
       36.102        2.331       11.434       14.893      0.83519       239.49
       6.3689      0.13393      0.93107      0.83519       0.7229       13.233
       215.01        61.27       214.76       239.49       13.233        10201

Unnormalized Covariance Matrix for the letter `a'

Columns 1 through 7 
      0.95428     -0.85528      -10.513     0.074334      -14.417     0.095498    -0.026702
     -0.85528       1.0354       3.6396     -0.12902       10.176    -0.064941     0.029454
      -10.513       3.6396       3083.5       5.3209       3091.1       2.7215      -1.3403
     0.074334     -0.12902       5.3209      0.11859       8.3769    -0.076568     0.010585
      -14.417       10.176       3091.1       8.3769       4494.9       1.6437      -1.3286
     0.095498    -0.064941       2.7215    -0.076568       1.6437      0.27624    -0.052733
    -0.026702     0.029454      -1.3403     0.010585      -1.3286    -0.052733     0.011705
      -25.083       7.4132       8628.3       10.211       8221.2       2.3394      -3.2007
       2.7432      -2.5162       4.2046      0.29642       28.595      0.79346        -0.21
       5.7234      -6.4633       48.166      0.15465       251.39       3.4281     -0.85344
        6.532      -7.9378       153.97      0.10468       352.85       3.7371      -1.0474
     -0.61644      0.22095       66.971      0.45496       119.43      0.52336    -0.099278
       146.93      -166.76       3677.1      -16.499       4695.7       113.67      -24.576
  Columns 8 through 13 
      -25.083       2.7432       5.7234        6.532     -0.61644       146.93
       7.4132      -2.5162      -6.4633      -7.9378      0.22095      -166.76
       8628.3       4.2046       48.166       153.97       66.971       3677.1
       10.211      0.29642      0.15465      0.10468      0.45496      -16.499
       8221.2       28.595       251.39       352.85       119.43       4695.7
       2.3394      0.79346       3.4281       3.7371      0.52336       113.67
      -3.2007        -0.21     -0.85344      -1.0474    -0.099278      -24.576
        27205      -46.464       73.558       505.43       89.164       3010.1
      -46.464       12.014       29.272       32.634        1.875       857.78
       73.558       29.272       135.76       160.08       13.035       3006.7
       505.43       32.634       160.08        208.5       11.693       3352.9
       89.164        1.875       13.035       11.693       10.121       185.26
       3010.1       857.78       3006.7       3352.9       185.26  1.4282e+005

First column of common covariance matrix

     0.092201
    -0.026816
     -0.54169
   -0.0027266
     -0.68841
     0.014771
   -0.0022798
      -1.0569
    -0.015565
      0.13256
      0.16128
    -0.015225
       4.3667

First column of inverse of common covariance matrix

       13.809
       4.4782
    -0.011673
       4.0232
    0.0072299
      -7.7238
      -2.0867
    0.0057572
     0.099306
     -0.10234
     -0.11906
    -0.072709
    0.0011699

Weights for feature `a'

 -12.592      
 -9.5355     
 -0.21989       
 104.52      
 0.10663       
 23.324       
 20.259      
 0.16971       
 2.5437
 4.3342      
 -3.2005      
 0.17489     
 0.053282

Initial weights

W0(a) = -117.19       
W0(c) = -94.728
W0(d) = -157.38
W0(e) = -130.97

Debug data for Long: the first example of the letter a

  Columns 1 through 8 
     -0.78087      -0.6247       78.102      0.87606           42            0            1       198.94
  Columns 9 through 16 
       5.6221       7.9825       4.0212      0.09066       1.6505     0.028261       4.7366       2.5471
  Columns 17 through 22 
      0.53775         3000       8.0064      0.70431        5.293      -2.4006