MATLAB Examples

viewSAS

View Sensitivity and Specificity (SAS) data in tabular form

Syntax

  • viewSAS(SAS)
  • viewSAS(SAS,media)
  • viewSAS(SAS,media,frame)
  • [SessionTotal,SessionIndividual] = viewSAS(SAS)
  • [MediaTotal,MediaIndividual] = viewSAS(SAS,media)
  • FrameTotal = viewSAS(SAS,media,frame)

Description

  • viewSAS(SAS) View table of SAS data for session
  • viewSAS(SAS,media) View a table for the total metrics for a specific media in the session and a list of metrics for each individual frame in the media
  • viewSAS(SAS,media,frame) View a table for the total metrics for a specifed frame in a specified media
  • [SessionTotal,SessionIndividual] = viewSAS(SAS) Output a table for the total metrics for session and a list of metrics for each individual media in the session
  • [MediaTotal,MediaIndividual] = viewSAS(SAS,media) Output a table for the total metrics for a specific media in the session and a list of metrics for each individual frame in the media
  • FrameTotal = viewSAS(SAS,media,frame) Output a table for the total metrics for a specifed frame in a specified medida

Input Arguments

SAS - Sensitivity and Specificity Results

Input structure. Created by evaluateObjectDetector.

'media' - Media Name or Number

Data Type: string or double

Specify name of media or index of media in media browser to view results for a specific media. Can be used in combination with FrameNumber to specify a specific frame in a media.

'frame' - Frame Number

Data Type: double

Specify index of frame to obtain results for a specific frame in a specific media. Must be used with MediaName or MediaNumer.

Example

Load the sensitivity and specificity results

load SensitivityAndSpecificityFull

View a table of SAS data for the entire session

viewSAS(SAS)
SessionTotal = 

    TP     FN     P     FP    TN      N 
    ___    __    ___    __    ___    ___

    140    69    209    2     217    217


SessionIndividual = 

                        TP     FN     P     FP    TN      N                                      Location                                 
                        ___    __    ___    __    ___    ___    __________________________________________________________________________

    buoys.jpg             1     1      2    0       1      1    'C:\MyMatlab\Projects\GroundTruthLabelerAppProject\GroundTruthLabelerApp…'
    stop.jpg              0     0      0    0       1      1    'C:\MyMatlab\Projects\GroundTruthLabelerAppProject\GroundTruthLabelerApp…'
    BuoyRun.avi         139    68    207    2     215    215    'C:\MyMatlab\Projects\GroundTruthLabelerAppProject\GroundTruthLabelerApp…'
    vipwarnsigns.avi      0     0      0    0       0      0    'C:\MyMatlab\Projects\GroundTruthLabelerAppProject\GroundTruthLabelerApp…'

View table of SAS data for a specific media

viewSAS(SAS,'BuoyRun.avi')
MediaTotal = 

    TP     FN     P     FP    TN      N 
    ___    __    ___    __    ___    ___

    139    68    207    2     215    215


MediaIndividual = 

                TP    FN    P    FP    TN    N
                __    __    _    __    __    _

    frame1      1     1     2    0     1     1
    frame2      1     0     1    0     1     1
    frame3      1     0     1    0     1     1
    frame4      1     0     1    0     1     1
    frame5      1     0     1    0     1     1
    frame6      1     0     1    0     1     1
    frame7      1     0     1    0     1     1
    frame8      1     0     1    0     1     1
    frame9      1     0     1    0     1     1
    frame10     1     0     1    0     1     1
    frame11     1     0     1    1     1     1
    frame12     1     0     1    0     1     1
    frame13     1     0     1    0     1     1
    frame14     1     0     1    0     1     1
    frame15     1     0     1    1     1     1
    frame16     1     0     1    0     1     1
    frame17     1     0     1    0     1     1
    frame18     1     0     1    0     1     1
    frame19     1     0     1    0     1     1
    frame20     1     0     1    0     1     1
    frame21     1     0     1    0     1     1
    frame22     1     0     1    0     1     1
    frame23     1     0     1    0     1     1
    frame24     1     0     1    0     1     1
    frame25     1     0     1    0     1     1
    frame26     1     0     1    0     1     1
    frame27     1     0     1    0     1     1
    frame28     1     0     1    0     1     1
    frame29     1     0     1    0     1     1
    frame30     1     0     1    0     1     1
    frame31     1     0     1    0     1     1
    frame32     1     0     1    0     1     1
    frame33     1     0     1    0     1     1
    frame34     1     0     1    0     1     1
    frame35     1     0     1    0     1     1
    frame36     1     0     1    0     1     1
    frame37     1     0     1    0     1     1
    frame38     1     0     1    0     1     1
    frame39     1     0     1    0     1     1
    frame40     1     0     1    0     1     1
    frame41     1     0     1    0     1     1
    frame42     1     0     1    0     1     1
    frame43     1     0     1    0     1     1
    frame44     1     0     1    0     1     1
    frame45     1     0     1    0     1     1
    frame46     1     0     1    0     2     2
    frame47     1     0     1    0     2     2
    frame48     1     0     1    0     1     1
    frame49     1     0     1    0     1     1
    frame50     1     0     1    0     1     1
    frame51     1     0     1    0     1     1
    frame52     1     0     1    0     1     1
    frame53     1     0     1    0     1     1
    frame54     1     0     1    0     1     1
    frame55     1     1     2    0     1     1
    frame56     1     1     2    0     1     1
    frame57     1     1     2    0     1     1
    frame58     1     1     2    0     1     1
    frame59     1     1     2    0     1     1
    frame60     1     1     2    0     1     1
    frame61     1     1     2    0     1     1
    frame62     0     2     2    0     1     1
    frame63     1     1     2    0     1     1
    frame64     1     0     1    0     1     1
    frame65     0     1     1    0     1     1
    frame66     0     1     1    0     1     1
    frame67     1     0     1    0     1     1
    frame68     0     1     1    0     1     1
    frame69     1     0     1    0     1     1
    frame70     0     1     1    0     1     1
    frame71     0     1     1    0     1     1
    frame72     1     0     1    0     1     1
    frame73     1     0     1    0     1     1
    frame74     1     0     1    0     1     1
    frame75     0     1     1    0     1     1
    frame76     0     1     1    0     1     1
    frame77     0     1     1    0     1     1
    frame78     1     0     1    0     1     1
    frame79     1     0     1    0     1     1
    frame80     1     0     1    0     1     1
    frame81     1     0     1    0     1     1
    frame82     0     1     1    0     1     1
    frame83     1     0     1    0     1     1
    frame84     1     0     1    0     1     1
    frame85     0     1     1    0     1     1
    frame86     1     0     1    0     1     1
    frame87     1     0     1    0     1     1
    frame88     1     0     1    0     1     1
    frame89     1     0     1    0     1     1
    frame90     1     0     1    0     1     1
    frame91     1     0     1    0     1     1
    frame92     1     0     1    0     1     1
    frame93     1     0     1    0     1     1
    frame94     1     0     1    0     1     1
    frame95     1     0     1    0     1     1
    frame96     1     0     1    0     1     1
    frame97     1     0     1    0     1     1
    frame98     1     0     1    0     1     1
    frame99     1     0     1    0     1     1
    frame100    1     0     1    0     1     1
    frame101    1     0     1    0     1     1
    frame102    1     0     1    0     1     1
    frame103    1     0     1    0     1     1
    frame104    1     0     1    0     1     1
    frame105    1     0     1    0     1     1
    frame106    1     0     1    0     1     1
    frame107    1     0     1    0     1     1
    frame108    1     0     1    0     1     1
    frame109    1     0     1    0     1     1
    frame110    1     0     1    0     1     1
    frame111    1     0     1    0     1     1
    frame112    1     0     1    0     1     1
    frame113    1     0     1    0     1     1
    frame114    1     0     1    0     1     1
    frame115    1     0     1    0     1     1
    frame116    1     0     1    0     1     1
    frame117    1     0     1    0     1     1
    frame118    1     0     1    0     1     1
    frame119    1     0     1    0     1     1
    frame120    1     0     1    0     1     1
    frame121    1     0     1    0     1     1
    frame122    1     0     1    0     1     1
    frame123    1     0     1    0     1     1
    frame124    1     0     1    0     1     1
    frame125    1     0     1    0     1     1
    frame126    1     0     1    0     1     1
    frame127    1     0     1    0     1     1
    frame128    1     0     1    0     1     1
    frame129    1     0     1    0     1     1
    frame130    1     0     1    0     1     1
    frame131    1     0     1    0     1     1
    frame132    1     0     1    0     1     1
    frame133    1     0     1    0     1     1
    frame134    1     0     1    0     1     1
    frame135    1     0     1    0     1     1
    frame136    1     0     1    0     1     1
    frame137    1     0     1    0     1     1
    frame138    1     0     1    0     1     1
    frame139    1     0     1    0     1     1
    frame140    1     0     1    0     1     1
    frame141    1     0     1    0     1     1
    frame142    1     0     1    0     1     1
    frame143    1     0     1    0     1     1
    frame144    1     0     1    0     1     1
    frame145    1     0     1    0     1     1
    frame146    1     0     1    0     1     1
    frame147    1     0     1    0     1     1
    frame148    1     1     2    0     1     1
    frame149    1     1     2    0     1     1
    frame150    1     1     2    0     1     1
    frame151    0     1     1    0     1     1
    frame152    0     1     1    0     1     1
    frame153    0     1     1    0     1     1
    frame154    0     1     1    0     1     1
    frame155    0     1     1    0     1     1
    frame156    0     1     1    0     2     2
    frame157    0     1     1    0     2     2
    frame158    0     1     1    0     2     2
    frame159    0     1     1    0     2     2
    frame160    0     1     1    0     2     2
    frame161    0     1     1    0     2     2
    frame162    0     1     1    0     2     2
    frame163    0     1     1    0     2     2
    frame164    0     1     1    0     2     2
    frame165    0     1     1    0     2     2
    frame166    0     1     1    0     2     2
    frame167    0     1     1    0     2     2
    frame168    0     1     1    0     1     1
    frame169    0     1     1    0     1     1
    frame170    0     1     1    0     1     1
    frame171    0     1     1    0     1     1
    frame172    0     1     1    0     1     1
    frame173    0     1     1    0     1     1
    frame174    0     1     1    0     1     1
    frame175    0     1     1    0     1     1
    frame176    0     1     1    0     1     1
    frame177    0     1     1    0     1     1
    frame178    0     1     1    0     1     1
    frame179    0     1     1    0     1     1
    frame180    0     1     1    0     1     1
    frame181    0     1     1    0     1     1
    frame182    0     1     1    0     1     1
    frame183    0     1     1    0     1     1
    frame184    0     1     1    0     1     1
    frame185    0     1     1    0     1     1
    frame186    0     1     1    0     1     1
    frame187    0     1     1    0     1     1
    frame188    0     1     1    0     1     1
    frame189    0     1     1    0     1     1
    frame190    0     1     1    0     1     1
    frame191    0     1     1    0     1     1
    frame192    0     1     1    0     1     1
    frame193    0     1     1    0     1     1
    frame194    0     1     1    0     1     1
    frame195    0     0     0    0     1     1
    frame196    0     0     0    0     1     1
    frame197    0     0     0    0     1     1
    frame198    0     0     0    0     1     1
    frame199    0     0     0    0     1     1
    frame200    0     0     0    0     1     1
    frame201    0     0     0    0     1     1

View table of SAS data for a specific frame from a specific media

viewSAS(SAS,'BuoyRun.avi',1)
FrameTotal = 

              TP    FN    P    FP    TN    N
              __    __    _    __    __    _

    frame1    1     1     2    0     1     1

See Also

groundTruthLabeler, evaluateObjectDetector, visualizeSAS