ANIMA  4.0
Public Member Functions | Static Public Member Functions | Protected Member Functions | List of all members
anima::SegPerfApp Class Reference

Main class to structure application and handle command line options. More...

#include <animaSegPerfApp.h>

Public Member Functions

void checkOutputCoherence ()
 This method define an output way if none are defined by command line. More...
 
bool checkParamsCoherence ()
 This method check if command line arguments are coherent between us. More...
 
bool init (int argc, char *argv[])
 This method set the application behavior thanks to command line arguments parsing. More...
 
void play ()
 This method execute images filter to obtain desired measures, marks and scores. More...
 
void prepareOutput ()
 This method define the base file name for output way. More...
 
 SegPerfApp (void)
 
 ~SegPerfApp (void)
 

Static Public Member Functions

static void about ()
 This method display information about SegPerfAnalyzer results. More...
 

Protected Member Functions

void processAnalyze (SegPerfCAnalyzer &pi_oAnalyzer, int pi_iIndex)
 This method provides computing metrics, marks and scores for desired label. More...
 
void storeMetricsAndMarks (SegPerfResults &pi_roRes)
 This method store results into SegPerfResults class instance. More...
 
long writeStoredMetricsAndMarks (SegPerfResults &pi_roRes)
 This method flush SegPerfResults class instance. More...
 

Detailed Description

Main class to structure application and handle command line options.

Definition at line 13 of file animaSegPerfApp.h.

Constructor & Destructor Documentation

◆ SegPerfApp()

anima::SegPerfApp::SegPerfApp ( void  )

Definition at line 11 of file animaSegPerfApp.cxx.

◆ ~SegPerfApp()

anima::SegPerfApp::~SegPerfApp ( void  )

Definition at line 61 of file animaSegPerfApp.cxx.

Member Function Documentation

◆ about()

void anima::SegPerfApp::about ( )
static

This method display information about SegPerfAnalyzer results.

Definition at line 419 of file animaSegPerfApp.cxx.

References anima::SegPerfResults::eMesureLast, and anima::SegPerfResults::getMeasureNameTable().

Referenced by init().

◆ checkOutputCoherence()

void anima::SegPerfApp::checkOutputCoherence ( )

This method define an output way if none are defined by command line.

For the moment the default output way is text file.

Definition at line 215 of file animaSegPerfApp.cxx.

Referenced by main().

◆ checkParamsCoherence()

bool anima::SegPerfApp::checkParamsCoherence ( )

This method check if command line arguments are coherent between us.

If an incoherence is detected into command line arguments a message will be displayed to user and in better cases consistency will be restored.

Definition at line 160 of file animaSegPerfApp.cxx.

Referenced by main().

◆ init()

bool anima::SegPerfApp::init ( int  argc,
char *  argv[] 
)

This method set the application behavior thanks to command line arguments parsing.

Parameters
[in]argcis the number of command line arguments.
[in]argvis the table of command line arguments.

The main function must delegate to it command line arguments. this method will parse and set different option values.

Definition at line 71 of file animaSegPerfApp.cxx.

References about().

Referenced by main().

◆ play()

void anima::SegPerfApp::play ( )

◆ prepareOutput()

void anima::SegPerfApp::prepareOutput ( )

This method define the base file name for output way.

Definition at line 226 of file animaSegPerfApp.cxx.

Referenced by main().

◆ processAnalyze()

void anima::SegPerfApp::processAnalyze ( SegPerfCAnalyzer pi_roAnalyzer,
int  pi_iIndex 
)
protected

◆ storeMetricsAndMarks()

void anima::SegPerfApp::storeMetricsAndMarks ( SegPerfResults pi_roRes)
protected

◆ writeStoredMetricsAndMarks()

long anima::SegPerfApp::writeStoredMetricsAndMarks ( SegPerfResults pi_roRes)
protected

This method flush SegPerfResults class instance.

Parameters
[in]pi_roResis the reference output writer class instance.

This method is called by play method after storeMetricsAndMarks method.

Definition at line 410 of file animaSegPerfApp.cxx.

References anima::SegPerfResults::save().

Referenced by play().


The documentation for this class was generated from the following files: