env_channel.h

Go to the documentation of this file.
00001 /*!@file Envision/env_channel.h Base class for channels that will use integer math */
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/Envision/env_channel.h $
00035 // $Id: env_channel.h 8054 2007-03-07 00:47:08Z rjpeters $
00036 //
00037 
00038 #ifndef ENVISION_ENV_CHANNEL_H_DEFINED
00039 #define ENVISION_ENV_CHANNEL_H_DEFINED
00040 
00041 #include "Envision/env_config.h"
00042 #include "Envision/env_types.h"
00043 
00044 struct env_dims;
00045 struct env_image;
00046 struct env_math;
00047 struct env_params;
00048 struct env_pyr;
00049 struct env_rgb_pixel;
00050 
00051 #ifdef __cplusplus
00052 extern "C"
00053 {
00054 #endif
00055 
00056         typedef void (env_chan_status_func)(void* userdata,
00057                                             const char* tagName,
00058                                             const struct env_image* img);
00059 
00060         void env_chan_process_pyr(const char* tagName,
00061                                   const struct env_dims inputDims,
00062                                   const struct env_pyr* pyr,
00063                                   const struct env_params* envp,
00064                                   const struct env_math* imath,
00065                                   const int takeAbs,
00066                                   const int normalizeOutput,
00067                                   struct env_image* result);
00068 
00069         //! An intensity channel.
00070         void env_chan_intensity(const char* tagName,
00071                                 const struct env_params* envp,
00072                                 const struct env_math* imath,
00073                                 const struct env_dims inputdims,
00074                                 const struct env_pyr* lowpass5,
00075                                 const int normalizeOutput,
00076                                 env_chan_status_func* status_func,
00077                                 void* status_userdata,
00078                                 struct env_image* result);
00079 
00080         //! A double opponent color channel that combines r/g, b/y subchannels
00081         void env_chan_color(const char* tagName,
00082                             const struct env_params* envp,
00083                             const struct env_math* imath,
00084                             const struct env_rgb_pixel* const colimg,
00085                             const struct env_rgb_pixel* const prev_colimg /* or null is fine here */,
00086                             const struct env_dims dims,
00087                             env_chan_status_func* status_func,
00088                             void* status_userdata,
00089                             struct env_image* result);
00090 
00091         //! An orientation filtering channel
00092         void env_chan_steerable(const char* tagName,
00093                             const struct env_params* envp,
00094                             const struct env_math* imath,
00095                             const struct env_dims inputdims,
00096                             const struct env_pyr* hipass9,
00097                             const env_size_t thetaidx,
00098                             env_chan_status_func* status_func,
00099                             void* status_userdata,
00100                             struct env_image* result);
00101 
00102         //! A composite channel with a set of steerable-filter subchannels
00103         void env_chan_orientation(const char* tagName,
00104                                   const struct env_params* envp,
00105                                   const struct env_math* imath,
00106                                   const struct env_image* img,
00107                                   env_chan_status_func* status_func,
00108                                   void* status_userdata,
00109                                   struct env_image* result);
00110 
00111 #ifdef ENV_WITH_DYNAMIC_CHANNELS
00112 
00113         //! A temporal flicker channel.
00114         void env_chan_flicker(const char* tagName,
00115                               const struct env_params* envp,
00116                               const struct env_math* imath,
00117                               const struct env_image* prev,
00118                               const struct env_image* cur,
00119                               env_chan_status_func* status_func,
00120                               void* status_userdata,
00121                               struct env_image* result);
00122 
00123         //! A true multi-scale temporal flicker channel.
00124         void env_chan_msflicker(const char* tagName,
00125                                 const struct env_params* envp,
00126                                 const struct env_math* imath,
00127                                 const struct env_dims inputDims,
00128                                 const struct env_pyr* prev_lowpass5,
00129                                 const struct env_pyr* cur_lowpass5,
00130                                 env_chan_status_func* status_func,
00131                                 void* status_userdata,
00132                                 struct env_image* result);
00133 
00134         //! A motion sensitive channel with direction selectivity
00135         void env_chan_direction(const char* tagName,
00136                                 const struct env_params* envp,
00137                                 const struct env_math* imath,
00138                                 const struct env_dims inputdims,
00139                                 const struct env_pyr* unshiftedPrev,
00140                                 const struct env_pyr* unshiftedCur,
00141                                 const struct env_pyr* shiftedPrev,
00142                                 const struct env_pyr* shiftedCur,
00143                                 env_chan_status_func* status_func,
00144                                 void* status_userdata,
00145                                 struct env_image* result);
00146 
00147 #endif // ENV_WITH_DYNAMIC_CHANNELS
00148 
00149 #ifdef __cplusplus
00150 }
00151 #endif
00152 
00153 // ######################################################################
00154 /* So things look consistent in everyone's emacs... */
00155 /* Local Variables: */
00156 /* indent-tabs-mode: nil */
00157 /* c-file-style: "linux" */
00158 /* End: */
00159 
00160 #endif // ENVISION_ENV_CHANNEL_H_DEFINED
Generated on Sun May 8 08:40:38 2011 for iLab Neuromorphic Vision Toolkit by  doxygen 1.6.3