neovision2.C File Reference

#include "Image/OpenCVUtil.H"
#include "Component/GlobalOpts.H"
#include "Component/ModelManager.H"
#include "Component/ModelOptionDef.H"
#include "Component/ModelParam.H"
#include "Component/ModelParamBatch.H"
#include "Devices/DeviceOpts.H"
#include "Devices/IEEE1394grabber.H"
#include "GUI/ImageDisplayStream.H"
#include "GUI/PrefsWindow.H"
#include "GUI/XWinManaged.H"
#include "Image/ColorOps.H"
#include "Image/CutPaste.H"
#include "Image/DrawOps.H"
#include "Image/FilterOps.H"
#include "Image/Image.H"
#include "Image/ImageSet.H"
#include "Image/Layout.H"
#include "Image/MathOps.H"
#include "Image/Pixels.H"
#include "Image/PyramidOps.H"
#include "Image/ShapeOps.H"
#include "Image/Transforms.H"
#include "Media/FrameSeries.H"
#include "Media/MediaOpts.H"
#include "NeovisionII/Nv2LabelReader.H"
#include "NeovisionII/nv2_common.h"
#include "Neuro/NeoBrain.H"
#include "Neuro/EnvInferoTemporal.H"
#include "Neuro/EnvSaliencyMap.H"
#include "Neuro/EnvSegmenterConfigurator.H"
#include "Neuro/EnvVisualCortex.H"
#include "Raster/GenericFrame.H"
#include "Raster/Raster.H"
#include "Transport/FrameInfo.H"
#include "Transport/TransportOpts.H"
#include "Util/FpsTimer.H"
#include "Util/Pause.H"
#include "Util/StringConversions.H"
#include "Util/StringUtil.H"
#include "Util/SyncJobServer.H"
#include "Util/SysInfo.H"
#include "Util/TextLog.H"
#include "Util/WorkThreadServer.H"
#include "Util/csignals.H"
#include "rutz/shared_ptr.h"
#include "rutz/trace.h"
#include <ctype.h>
#include <deque>
#include <iterator>
#include <limits>
#include <stdlib.h>
#include <string.h>
#include <sys/resource.h>
#include <signal.h>
#include <time.h>
#include <vector>

Go to the source code of this file.

Classes

class  EnvSimulationViewer
struct  Nv2UiData
class  Nv2UiJob

Functions

int submain (int argc, const char **argv)
int main (int argc, const char **argv)

Variables

const size_t PREFERRED_TEXT_LENGTH = 42
static const ModelOptionDef OPT_AsyncUi
static const ModelOptionDef OPT_AsyncUiQueueSize
static const ModelOptionDef OPT_FlushUiQueue
static const ModelOptionDef OPT_Neovision2Gui
static const ModelOptionDef OPT_CompactDisplay
static const ModelOptionDef OPT_ExtendedDisplay
static const ModelOptionDef OPT_DispZoom
static const ModelOptionDef OPT_InputReduce
static const ModelOptionDef OPT_MainwinTitle
static const ModelOptionDef OPT_SaveVcx
static const ModelOptionDef OPT_SaveSm
static const ModelOptionDef OPT_WithObjrecMode
static const ModelOptionDef OPT_ALIASheadDemo
static const ModelOptionDef OPT_ALIASheadDemo21
static const ModelOptionDef OPT_ALIASheadDemo3
static const ModelOptionDef OPT_ALIASflea2Demo
static const ModelOptionDef OPT_ALIASHDDemo

Detailed Description

CUDA-accelerated Neovision2 integrated demo

Neovision2 integrated demo

Definition in file neovision2.C.


Variable Documentation

const ModelOptionDef OPT_ALIASflea2Demo [static]
Initial value:
  { MODOPT_ALIAS, "ALIASflea2Demo", &MOC_ALIAS, OPTEXP_CORE,
    "Set parameters for the Flea2 demo",
    "flea2-demo", '\0', "",
    "--in=dc1394v2 "
    "--framegrabber-dims=1024x768 "
    "--framegrabber-mode=RGB24 "
    "--framegrabber-fps=15 "
    "--evc-multithreaded "
    "--noneobrain-speech "
    "--disp-zoom=4 "
  }

Definition at line 817 of file neovision2.C.

const ModelOptionDef OPT_ALIASHDDemo [static]
Initial value:
  { MODOPT_ALIAS, "ALIASHDDemo", &MOC_ALIAS, OPTEXP_CORE,
    "Set parameters for the hd camera on ilab24",
    "hd-demo", '\0', "",
    "--in=XC "
    "--framegrabber-dims=1024x768 "
    "--patch-reader=192.168.0.229:9930 "
    "--disp-zoom=3 "
    "--evc-multithreaded "
  }

Definition at line 830 of file neovision2.C.

const ModelOptionDef OPT_ALIASheadDemo [static]
Initial value:
  { MODOPT_ALIAS, "ALIASheadDemo", &MOC_ALIAS, OPTEXP_CORE,
    "Set parameters for the head demo",
    "head-demo", '\0', "",
    "--in=V4L2 "
    "--framegrabber-dims=320x240 "
    "--framegrabber-mode=RGB24 "
    "--framegrabber-chan=0 "
    "--framegrabber-dev=/dev/video1 "
    "--evc-type=I:0.75C:0.75O:0.75F:0.75M:1.0 "
    "--mainwin-title=Sal "
    "--neobrain-speak-saliency "
    "--neobrain-speak-objects "
    "--with-objrec-mode "
  }

Definition at line 773 of file neovision2.C.

const ModelOptionDef OPT_ALIASheadDemo21 [static]
Initial value:
  { MODOPT_ALIAS, "ALIASheadDemo21", &MOC_ALIAS, OPTEXP_CORE,
    "Set parameters for the head demo on ilab21",
    "head-demo21", '\0', "",
    "--in=v4l2 "
    "--framegrabber-dims=720x480 "
    "--framegrabber-mode=HM12 "
    "--framegrabber-chan=2 "
    "--framegrabber-dev=/dev/video32 "
    "--evc-type=I:0.75C:0.75O:0.75F:0.75M:1.0 "
    "--mainwin-title=Sal "
    "--with-objrec-mode "
    "--neobrain-speak-saliency "
    "--evc-multithreaded "
  }

Definition at line 789 of file neovision2.C.

const ModelOptionDef OPT_ALIASheadDemo3 [static]
Initial value:
  { MODOPT_ALIAS, "ALIASheadDemo3", &MOC_ALIAS, OPTEXP_CORE,
    "Set parameters for the head demo on ilab3",
    "head-demo3", '\0', "",
    "--in=v4l2 "
    "--evc-type=I:0.75C:0.75O:0.75F:0.75M:1.0 "
    "--mainwin-title=Sal "
    "--with-objrec-mode "
    "--neobrain-speak-saliency "
    "--evc-multithreaded "
  }

Definition at line 805 of file neovision2.C.

const ModelOptionDef OPT_AsyncUi [static]
Initial value:
  { MODOPT_FLAG, "AsyncUi", &MOC_OUTPUT, OPTEXP_CORE,
    "Whether to run the UI asynchronously in a background thread. "
    "This will give lower latencies and better framerates on a multi-core "
    "system, but will also allow frames to be dropped in order to maintain "
    "real-time responsiveness. Use --noasync-ui when it is critical that "
    "all frames be processed through the ui queue even if it cannot be done "
    "in real time.",
    "async-ui", '\0', "", "true" }

Definition at line 130 of file neovision2.C.

const ModelOptionDef OPT_AsyncUiQueueSize [static]
Initial value:
  { MODOPT_ARG(uint), "AsyncUiQueueSize", &MOC_OUTPUT, OPTEXP_CORE,
    "How many frames to hold in the asynchronous UI queue before "
    "we start dropping old frames",
    "async-ui-qsize", '\0', "<uint>", "2" }

Definition at line 140 of file neovision2.C.

const ModelOptionDef OPT_CompactDisplay [static]
Initial value:
  { MODOPT_FLAG, "EsvCompactDisplay", &MOC_OUTPUT, OPTEXP_CORE,
    "Whether to start the GUI in compact display mode",
    "compact-display", '\0', "", "true" }

Definition at line 157 of file neovision2.C.

const ModelOptionDef OPT_DispZoom [static]
Initial value:
  { MODOPT_ARG(size_t), "EsvDispZoom", &MOC_OUTPUT, OPTEXP_CORE,
    "Number of octaves to zoom in on the small maps",
    "disp-zoom", '\0', "size_t", "4" }

Definition at line 171 of file neovision2.C.

const ModelOptionDef OPT_ExtendedDisplay [static]
Initial value:
  { MODOPT_ARG(byte), "EsvExtendedDisplay", &MOC_OUTPUT, OPTEXP_CORE,
    "Amount of extra info to display in the GUI:\n"
    "    level 0: just input + saliency map\n"
    "    level 1: add meters underneath input+salmap\n"
    "    level 2: add single row of small internal maps\n"
    "    level 3: add double row of medium-sized internal maps",
    "extended-display", '\0', "<int>", "2" }

Definition at line 162 of file neovision2.C.

const ModelOptionDef OPT_FlushUiQueue [static]
Initial value:
  { MODOPT_FLAG, "FlushUiQueue", &MOC_OUTPUT, OPTEXP_CORE,
    "Whether to flush UI frames that are left in the queue "
    "when the main loop exits",
    "flush-ui-queue", '\0', "", "false" }

Definition at line 146 of file neovision2.C.

const ModelOptionDef OPT_InputReduce [static]
Initial value:
  { MODOPT_ARG(size_t), "EsvInputReduce", &MOC_OUTPUT, OPTEXP_CORE,
    "Number of octaves to reduce the input by, for display purposes only",
    "input-reduce", '\0', "size_t", "0" }

Definition at line 176 of file neovision2.C.

const ModelOptionDef OPT_MainwinTitle [static]
Initial value:
  { MODOPT_ARG_STRING, "MainwinTitle", &MOC_OUTPUT, OPTEXP_CORE,
    "Title to use for main output window",
    "mainwin-title", '\0', "<string>", "neovision2" }

Definition at line 181 of file neovision2.C.

const ModelOptionDef OPT_Neovision2Gui [static]
Initial value:
  { MODOPT_FLAG, "Neovision2Gui", &MOC_OUTPUT, OPTEXP_CORE,
    "Whether to show/save the neovision2 GUI",
    "neovision2-gui", '\0', "", "true" }

Definition at line 152 of file neovision2.C.

const ModelOptionDef OPT_SaveSm [static]
Initial value:
  { MODOPT_FLAG, "SaveSm", &MOC_OUTPUT, OPTEXP_CORE,
    "Whether to save the SaliencyMap (Sm) output",
    "save-sm", '\0', "", "false" }

Definition at line 191 of file neovision2.C.

const ModelOptionDef OPT_SaveVcx [static]
Initial value:
  { MODOPT_FLAG, "SaveVcx", &MOC_OUTPUT, OPTEXP_CORE,
    "Whether to save the VisualCortex (VCX) output",
    "save-vcx", '\0', "", "false" }

Definition at line 186 of file neovision2.C.

const ModelOptionDef OPT_WithObjrecMode [static]
Initial value:
  { MODOPT_FLAG, "WithObjrecMode", &MOC_OUTPUT, OPTEXP_CORE,
    "Whether to include an 'objrec' mode which toggles parameters "
    "to values suitable for object recognition training.",
    "with-objrec-mode", '\0', "", "false" }

Definition at line 767 of file neovision2.C.

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