TransportOpts.C

Go to the documentation of this file.
00001 /*!@file Transport/TransportOpts.C */
00002 
00003 // //////////////////////////////////////////////////////////////////// //
00004 // The iLab Neuromorphic Vision C++ Toolkit - Copyright (C) 2000-2005   //
00005 // by the University of Southern California (USC) and the iLab at USC.  //
00006 // See http://iLab.usc.edu for information about this project.          //
00007 // //////////////////////////////////////////////////////////////////// //
00008 // Major portions of the iLab Neuromorphic Vision Toolkit are protected //
00009 // under the U.S. patent ``Computation of Intrinsic Perceptual Saliency //
00010 // in Visual Environments, and Applications'' by Christof Koch and      //
00011 // Laurent Itti, California Institute of Technology, 2001 (patent       //
00012 // pending; application number 09/912,225 filed July 23, 2001; see      //
00013 // http://pair.uspto.gov/cgi-bin/final/home.pl for current status).     //
00014 // //////////////////////////////////////////////////////////////////// //
00015 // This file is part of the iLab Neuromorphic Vision C++ Toolkit.       //
00016 //                                                                      //
00017 // The iLab Neuromorphic Vision C++ Toolkit is free software; you can   //
00018 // redistribute it and/or modify it under the terms of the GNU General  //
00019 // Public License as published by the Free Software Foundation; either  //
00020 // version 2 of the License, or (at your option) any later version.     //
00021 //                                                                      //
00022 // The iLab Neuromorphic Vision C++ Toolkit is distributed in the hope  //
00023 // that it will be useful, but WITHOUT ANY WARRANTY; without even the   //
00024 // implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR      //
00025 // PURPOSE.  See the GNU General Public License for more details.       //
00026 //                                                                      //
00027 // You should have received a copy of the GNU General Public License    //
00028 // along with the iLab Neuromorphic Vision C++ Toolkit; if not, write   //
00029 // to the Free Software Foundation, Inc., 59 Temple Place, Suite 330,   //
00030 // Boston, MA 02111-1307 USA.                                           //
00031 // //////////////////////////////////////////////////////////////////// //
00032 //
00033 // Primary maintainer for this file: Rob Peters <rjpeters at usc dot edu>
00034 // $HeadURL: svn://isvn.usc.edu/software/invt/trunk/saliency/src/Transport/TransportOpts.C $
00035 // $Id: TransportOpts.C 9228 2008-02-07 01:10:48Z rjpeters $
00036 //
00037 
00038 #ifndef TRANSPORT_TRANSPORTOPTS_C_DEFINED
00039 #define TRANSPORT_TRANSPORTOPTS_C_DEFINED
00040 
00041 #include "Transport/TransportOpts.H"
00042 
00043 #include "Component/ModelOptionDef.H"
00044 #include "Image/Dims.H"
00045 #include "Raster/RasterFileFormat.H"
00046 
00047 const ModelOptionCateg MOC_INPUT = {
00048   MOC_SORTPRI_2, "Input Reading/Formatting Options" };
00049 
00050 const ModelOptionCateg MOC_OUTPUT = {
00051   MOC_SORTPRI_2, "Output Writing/Formatting Options" };
00052 
00053 const ModelOptionDef OPT_ShowInputDetails =
00054   { MODOPT_FLAG, "ShowInputDetails", &MOC_INPUT, OPTEXP_CORE,
00055     "Request that detailed information be printed about the input source "
00056     "(for example, if input is coming from a camera, then try to print "
00057     "details about the capabilities of that camera, its vendor and model, "
00058     ".etc)",
00059     "show-input-details", '\0', "", "false" };
00060 
00061 // Used by: RasterInputSeries
00062 const ModelOptionDef OPT_InputRasterFileFormat =
00063   { MODOPT_ARG(RasterFileFormat), "InputRasterFileFormat", &MOC_INPUT, OPTEXP_CORE,
00064     "Input file format",
00065     "input-format", '\0', "<PNM|PNG|PFM|YUV422|YUV420P|RAWIMAGE|JPEG|Auto>", "Auto" };
00066 
00067 // Used by: RasterInputOptions (on behalf of YuvParser)
00068 const ModelOptionDef OPT_InputYuvDims =
00069   { MODOPT_ARG(Dims), "InputYuvDims", &MOC_INPUT, OPTEXP_CORE,
00070     "NOTE: This option is DEPRECATED; see the documentation of "
00071     "--in=raster and --out=rawvideo for the preferred approach, in "
00072     "which image dimensions are encoded into the filename. This "
00073     "option is a deprecated approach to specifying the dimensions of "
00074     "raw video frames. The dimensions must be supplied externally as "
00075     "raw video frame files do not encode the dimensions in the file "
00076     "internally. Note that this option does not rescale the input "
00077     "frames at all, it just supplies the native size of the input "
00078     "frames (for rescaling, use --rescale-input).",
00079     "yuv-dims", '\0', "<w>x<h>", "640x480" };
00080 
00081 // Used by: RasterInputOptions (on behalf of YuvParser)
00082 const ModelOptionDef OPT_InputYuvDimsLoose =
00083   { MODOPT_FLAG, "InputYuvDimsLoose", &MOC_INPUT, OPTEXP_CORE,
00084     "Allow loose correspondence between the dimensions of raw yuv "
00085     "video frames and the corresponding file size. Normally it is a "
00086     "hard error if these values mismatch, but this option can be "
00087     "used to allow file sizes larger than the expected data size.",
00088     "yuv-dims-loose", '\0', "", "false" };
00089 
00090 // Used by: RasterInputOptions (on behalf of DpxParser)
00091 const ModelOptionDef OPT_InputDpxGamma =
00092   { MODOPT_ARG(float), "InputDpxGamma", &MOC_INPUT, OPTEXP_CORE,
00093     "Gamma value to use when performing color correction of dpx images.",
00094     "dpx-gamma", '\0', "<float>", "0.6" };
00095 
00096 // Used by: RasterInputOptions (on behalf of DpxParser)
00097 const ModelOptionDef OPT_InputDpxSigmoidContrast =
00098   { MODOPT_ARG(float), "InputDpxSigmoidContrast", &MOC_INPUT, OPTEXP_CORE,
00099     "Sigmoid contrast to use when performing color correction of dpx images.",
00100     "dpx-sigmoid-contrast", '\0', "<float>", "10.0" };
00101 
00102 // Used by: RasterInputOptions (on behalf of DpxParser)
00103 const ModelOptionDef OPT_InputDpxSigmoidThreshold =
00104   { MODOPT_ARG(float), "InputDpxSigmoidThreshold", &MOC_INPUT, OPTEXP_CORE,
00105     "Sigmoid threshold to use when performing color correction of dpx images.",
00106     "dpx-sigmoid-threshold", '\0', "<float>", "0.1" };
00107 
00108 // Used by: RasterInputOptions (on behalf of DpxParser)
00109 const ModelOptionDef OPT_InputDpxSrcClipLo =
00110   { MODOPT_ARG(float), "InputDpxSrcClipLo", &MOC_INPUT, OPTEXP_CORE,
00111     "Clamp smaller values to this value when performing color "
00112     "correction of dpx images.",
00113     "dpx-src-clip-lo", '\0', "<float>", "0.0" };
00114 
00115 // Used by: RasterInputOptions (on behalf of DpxParser)
00116 const ModelOptionDef OPT_InputDpxSrcClipHi =
00117   { MODOPT_ARG(float), "InputDpxSrcClipHi", &MOC_INPUT, OPTEXP_CORE,
00118     "Clamp larger values to this value when performing color "
00119     "correction of dpx images.",
00120     "dpx-src-clip-hi", '\0', "<float>", "5351.0" };
00121 
00122 // Used by: RasterOutputSeries
00123 const ModelOptionDef OPT_OutputRasterFileFormat =
00124   { MODOPT_ARG(RasterFileFormat), "OutputRasterFileFormat", &MOC_OUTPUT, OPTEXP_CORE,
00125     "Output file format",
00126     "output-format", '\0', "<PNM|PNG|PFM|YUV422|YUV420P|RAWIMAGE|Auto>", "PNM" };
00127 
00128 // ######################################################################
00129 /* So things look consistent in everyone's emacs... */
00130 /* Local Variables: */
00131 /* indent-tabs-mode: nil */
00132 /* End: */
00133 
00134 #endif // TRANSPORT_TRANSPORTOPTS_C_DEFINED
Generated on Sun May 8 08:42:24 2011 for iLab Neuromorphic Vision Toolkit by  doxygen 1.6.3