MbariResultViewer.C File Reference

#include "MBARI/MbariResultViewer.H"
#include "Component/ModelManager.H"
#include "Component/ModelOptionDef.H"
#include "GUI/XWinManaged.H"
#include "Image/CutPaste.H"
#include "Image/Image.H"
#include "Image/ShapeOps.H"
#include "Image/colorDefs.H"
#include "MBARI/MbariFrameSeries.H"
#include "MBARI/VisualEvent.H"
#include "Media/FrameSeries.H"
#include "Util/Assert.H"
#include "Util/log.H"
#include <cstdio>
#include <fstream>
Include dependency graph for MbariResultViewer.C:

Go to the source code of this file.

Defines

#define INSTANTIATE(T)

Functions

 INSTANTIATE (PixRGB< byte >)
 INSTANTIATE (byte)
 INSTANTIATE (float)

Variables

const ModelOptionDef OPT_MRVsaveEvents
 Command-line options for MbariResultViewer.
const ModelOptionDef OPT_MRVloadEvents
const ModelOptionDef OPT_MRVsaveProperties
const ModelOptionDef OPT_MRVloadProperties
const ModelOptionDef OPT_MRVsavePositions
const ModelOptionDef OPT_MRVmarkInteresting
const ModelOptionDef OPT_MRVopacity
const ModelOptionDef OPT_MRVmarkCandidate
const ModelOptionDef OPT_MRVmarkPrediction
const ModelOptionDef OPT_MRVmarkFOE
const ModelOptionDef OPT_MRVsaveResults
const ModelOptionDef OPT_MRVdisplayResults
const ModelOptionDef OPT_MRVsaveOutput
const ModelOptionDef OPT_MRVdisplayOutput
const ModelOptionDef OPT_MRVshowEventLabels
const ModelOptionDef OPT_MRVrescaleDisplay
const ModelOptionDef OPT_MRVsaveEventNums
const ModelOptionDef OPT_MRVsizeAvgCache

Detailed Description

class that manages the results viewing and saving for the MBARI programs

Definition in file MbariResultViewer.C.


Define Documentation

#define INSTANTIATE (  ) 
Value:
template void MbariResultViewer::output(const Image< T >& img, \
                                        const uint frameNum, \
                                        const std::string& resultName, \
                                        const int resNum); \
template void MbariResultViewer::display(const Image< T >& img, \
                                         const uint frameNum, \
                                         const std::string& resultName, \
                                         const int resNum); \
template XWinManaged* MbariResultViewer::displayImage(const Image< T >& img, \
                                                      XWinManaged* win, \
                                                      const char* label);

Definition at line 642 of file MbariResultViewer.C.


Variable Documentation

const ModelOptionDef OPT_MRVdisplayOutput
Initial value:
  { MODOPT_FLAG, "MRVdisplayOutput", &MOC_MBARIRV, OPTEXP_MRV,
    "Display output frames in MBARI programs",
    "mbari-display-output", '\0', "", "false" }

Definition at line 159 of file MbariResultViewer.C.

const ModelOptionDef OPT_MRVdisplayResults
Initial value:
  { MODOPT_FLAG, "MRVdisplayResults", &MOC_MBARIRV, OPTEXP_MRV,
    "Display intermediate results in MBARI programs",
    "mbari-display-results", '\0', "", "false" }

Definition at line 147 of file MbariResultViewer.C.

const ModelOptionDef OPT_MRVloadEvents
Initial value:
  { MODOPT_ARG_STRING, "MRVloadEvents", &MOC_MBARIRV, OPTEXP_MRV,
    "Load the event structure from a text file "
    "instead of computing it from the frames",
    "mbari-load-events", '\0', "fileName", "" }

Definition at line 84 of file MbariResultViewer.C.

const ModelOptionDef OPT_MRVloadProperties
Initial value:
  { MODOPT_ARG_STRING, "MRVloadProperties", &MOC_MBARIRV, OPTEXP_MRV,
    "Load the event property vector from a text file",
    "mbari-load-properties", '\0', "fileName", "" }

Definition at line 97 of file MbariResultViewer.C.

const ModelOptionDef OPT_MRVmarkCandidate
Initial value:
  { MODOPT_FLAG, "MRVmarkCandidate", &MOC_MBARIRV, OPTEXP_MRV,
    "Mark candidates for interesting events in output frames of MBARI programs",
    "mbari-mark-candidate", '\0', "", "true" }

Definition at line 122 of file MbariResultViewer.C.

const ModelOptionDef OPT_MRVmarkFOE
Initial value:
  { MODOPT_FLAG, "MRVmarkFOE", &MOC_MBARIRV, OPTEXP_MRV,
    "Mark the focus of expansion in the output frames of MBARI programs",
    "mbari-mark-foe", '\0', "", "false" }

Definition at line 135 of file MbariResultViewer.C.

const ModelOptionDef OPT_MRVmarkInteresting
Initial value:
  { MODOPT_ARG(BitObjectDrawMode), "MRVmarkInteresting", &MOC_MBARIRV, OPTEXP_MRV,
    "Way to mark interesting events in output frames of MBARI programs",
    "mbari-mark-interesting", '\0', "<None|Shape|Outline|BoundingBox>",
    "BoundingBox" }

Definition at line 109 of file MbariResultViewer.C.

const ModelOptionDef OPT_MRVmarkPrediction
Initial value:
  { MODOPT_FLAG, "MRVmarkPrediction", &MOC_MBARIRV, OPTEXP_MRV,
    "Mark the Kalman Filter's prediction for the location of an object "
    "in output frames of MBARI programs",
    "mbari-mark-prediction", '\0', "", "false" }

Definition at line 128 of file MbariResultViewer.C.

const ModelOptionDef OPT_MRVopacity
Initial value:
  { MODOPT_ARG(float), "MRVopacity", &MOC_MBARIRV, OPTEXP_MRV,
    "Opacity of shape or outline markings of events",
    "mbari-opacity", '\0', "<0.0 ... 1.0>", "1.0" }

Definition at line 116 of file MbariResultViewer.C.

const ModelOptionDef OPT_MRVrescaleDisplay
Initial value:
  { MODOPT_ARG(Dims), "MRVrescaleDisplay", &MOC_MBARIRV, OPTEXP_MRV,
    "Rescale displays to <width>x<height>, or 0x0 for no rescaling",
    "mbari-rescale-display", '\0', "<width>x<height>", "0x0" }

Definition at line 171 of file MbariResultViewer.C.

const ModelOptionDef OPT_MRVsaveEventNums
Initial value:
  { MODOPT_ARG_STRING, "MRVsaveEventNums", &MOC_MBARIRV, OPTEXP_MRV,
    "Save video clips showing specific events",
    "mbari-save-event-clip", '\0', "ev1,ev1,...,evN; or: all", "" }

Definition at line 177 of file MbariResultViewer.C.

Initial value:
  { MODOPT_ARG_STRING, "MRVsaveEvents", &MOC_MBARIRV, OPTEXP_MRV,
    "Save the event structure to a text file",
    "mbari-save-events", '\0', "fileName", "" }

Command-line options for MbariResultViewer.

Definition at line 78 of file MbariResultViewer.C.

const ModelOptionDef OPT_MRVsaveOutput
Initial value:
  { MODOPT_FLAG, "MRVsaveOutput", &MOC_MBARIRV, OPTEXP_MRV,
    "Save output frames in MBARI programs",
    "mbari-save-output", '\0', "", "true" }

Definition at line 153 of file MbariResultViewer.C.

const ModelOptionDef OPT_MRVsavePositions
Initial value:
  { MODOPT_ARG_STRING, "MRVsavePositions", &MOC_MBARIRV, OPTEXP_MRV,
    "Save the positions of events to a text file",
    "mbari-save-positions", '\0', "fileName", "" }

Definition at line 103 of file MbariResultViewer.C.

const ModelOptionDef OPT_MRVsaveProperties
Initial value:
  { MODOPT_ARG_STRING, "MRVsaveProperties", &MOC_MBARIRV, OPTEXP_MRV,
    "Save the event property vector to a text file",
    "mbari-save-properties", '\0', "fileName", "" }

Definition at line 91 of file MbariResultViewer.C.

const ModelOptionDef OPT_MRVsaveResults
Initial value:
  { MODOPT_FLAG, "MRVsaveResults", &MOC_MBARIRV, OPTEXP_MRV,
    "Save intermediate results in MBARI programs to disc",
    "mbari-save-results", '\0', "", "false" }

Definition at line 141 of file MbariResultViewer.C.

const ModelOptionDef OPT_MRVshowEventLabels
Initial value:
  { MODOPT_FLAG, "MRVshowEventLabels", &MOC_MBARIRV, OPTEXP_MRV,
    "Write event labels into the output frames",
    "mbari-label-events", '\0', "", "true" }

Definition at line 165 of file MbariResultViewer.C.

const ModelOptionDef OPT_MRVsizeAvgCache
Initial value:
  { MODOPT_ARG(int), "MRVsizeAvgCache", &MOC_MBARIRV, OPTEXP_MRV,
    "The number of frames used to compute the running average",
    "mbari-cache-size", '\0', "<int>", "10" }

Definition at line 183 of file MbariResultViewer.C.

Generated on Sun May 8 08:13:24 2011 for iLab Neuromorphic Vision Toolkit by  doxygen 1.6.3