Sketch Recognition, Fall 2006, Instructor: Tracy Hammond

Primitive Error Finding Help

Code:

lineerror.m

linetest.m

Random Shape Values

Shape 1

ERROR:
              ratio: 5.2679
          rationorm: 4.2679
        featurearea: 23466
    featureareanorm: 202.5
           endpoint: 475.4
       endpointnorm: 10.115
            bestfit: 348.27
        bestfitnorm: 7.4099
bestfit = [509, 278.63; 693, 280.55]
endpoint = [626, 159; 584, 267]

Shape 2

ERROR:
              ratio: 3.9789
          rationorm: 2.9789
        featurearea: 14182
    featureareanorm: 122.73
           endpoint: 326.21
       endpointnorm: 8.3642
            bestfit: 247.37
        bestfitnorm: 6.3429
bestfit = [540.61, 208; 492.32, 378]
endpoint = [ 597, 261; 491, 307]

Shape 3

ERROR:
              ratio: 9.4662
          rationorm: 8.4662
        featurearea: 8572
    featureareanorm: 83.922
           endpoint: 1289
       endpointnorm: 25.274
            bestfit: 422.48
        bestfitnorm: 8.2838
bestfit = [458, 477.53; 821, 308.87]
endpoint = [677, 251; 774, 283]

Shape 4

ERROR:
              ratio: 7.1605
          rationorm: 6.1605
        featurearea: 15656
    featureareanorm: 212.16
           endpoint: 448.6
       endpointnorm: 8.4641
            bestfit: 392.21
        bestfitnorm: 7.4003
bestfit = [443, 235.32; 609, 245.51]
endpoint = [456, 130; 489, 196]

Shape 5

ERROR:
              ratio: 4.8452
          rationorm: 3.8452
        featurearea: 28545
    featureareanorm: 116.69
           endpoint: 2250.2
       endpointnorm: 29.608
            bestfit: 570.57
        bestfitnorm: 7.5076
bestfit = [474, 353.48; 898, 247.01]
endpoint = [609, 469; 500, 250]

Shape 6

ERROR:
              ratio: 4.5048
          rationorm: 3.5048
        featurearea: 31924
    featureareanorm: 128.13
           endpoint: 2059.7
       endpointnorm: 31.207
            bestfit: 560.87
        bestfitnorm: 8.498
bestfit = [431, 441.25; 830, 350.98]
endpoint = [670, 181; 830, 372]

Shape 7

ERROR:
              ratio: 1.0013
          rationorm: 0.0013191
        featurearea: 385.5
    featureareanorm: 1.5118
           endpoint: 6.1644
       endpointnorm: 0.26802
            bestfit: 3.5272
        bestfitnorm: 0.15336
bestfit = [562.19, 159; 563.75, 414]
endpoint = [564, 159; 564, 414]

Shape 8

ERROR:
              ratio: 1.0096
          rationorm: 0.0095991
        featurearea: 770.5
    featureareanorm: 3.1277
           endpoint: 17.772
       endpointnorm: 0.52271
            bestfit: 10.696
        bestfitnorm: 0.31459
bestfit = [431, 345.06; 677, 354.13]
endpoint = [431, 341; 677, 354]