iLab Neuromorphic Robotics Toolkit  0.1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
GenericImageOperators.H File Reference

Author
Laurent Itti

License

// ////////////////////////////////////////////////////////////////////////
//              The iLab Neuromorphic Robotics Toolkit (NRT)             //
// Copyright 2010-2012 by the University of Southern California (USC)    //
//                          and the iLab at USC.                         //
//                                                                       //
//                iLab - University of Southern California               //
//                Hedco Neurociences Building, Room HNB-10               //
//                    Los Angeles, Ca 90089-2520 - USA                   //
//                                                                       //
//      See http://ilab.usc.edu for information about this project.      //
// ////////////////////////////////////////////////////////////////////////
// This file is part of The iLab Neuromorphic Robotics Toolkit.          //
//                                                                       //
// The iLab Neuromorphic Robotics Toolkit is free software: you can      //
// redistribute it and/or modify it under the terms of the GNU General   //
// Public License as published by the Free Software Foundation, either   //
// version 3 of the License, or (at your option) any later version.      //
//                                                                       //
// The iLab Neuromorphic Robotics Toolkit is distributed in the hope     //
// that it will be useful, but WITHOUT ANY WARRANTY; without even the    //
// implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR       //
// PURPOSE.  See the GNU General Public License for more details.        //
//                                                                       //
// You should have received a copy of the GNU General Public License     //
// along with The iLab Neuromorphic Robotics Toolkit.  If not, see       //
// <http://www.gnu.org/licenses/>.                                       //
// ////////////////////////////////////////////////////////////////////////

Definition in file GenericImageOperators.H.

Go to the source code of this file.

Namespaces

 nrt
 Reserved namespace for NRT core classes and functions.
 

Macros

#define NRT_ENABLE_IF_PIXEL(PixType)   typename=typename std::enable_if<pixel_helper::is_pixel<PixType>::value>::type
 

Functions

GenericImage nrt::operator+ (GenericImage const &lhs, GenericImage const &rhs)
 Pointwise addition of two GenericImage images: GenericImage + GenericImage.
 
template<class PixType2 , NRT_ENABLE_IF_PIXEL(PixType2) >
GenericImage nrt::operator+ (GenericImage const &lhs, PixType2 const &rhs)
 Addition of a constant to every pixel in a GenericImage: GenericImage + T.
 
template<class PixType1 , NRT_ENABLE_IF_PIXEL(PixType1) >
GenericImage nrt::operator+ (PixType1 const &lhs, GenericImage const &rhs)
 Addition of a constant to every pixel in a GenericImage: T + GenericImage.
 
GenericImage nrt::operator- (GenericImage const &lhs, GenericImage const &rhs)
 Pointwise subtraction of two GenericImage objects: GenericImage - GenericImage.
 
template<class PixType2 , NRT_ENABLE_IF_PIXEL(PixType2) >
GenericImage nrt::operator- (GenericImage const &lhs, PixType2 const &rhs)
 Subtraction of a constant from every pixel in a GenericImage: GenericImage - T.
 
template<class PixType1 , NRT_ENABLE_IF_PIXEL(PixType1) >
GenericImage nrt::operator- (PixType1 const &lhs, GenericImage const &rhs)
 Subtraction of every pixel of a GenericImage from a constant: T - GenericImage.
 
GenericImage nrt::operator* (GenericImage const &lhs, GenericImage const &rhs)
 Pointwise product of two GenericImage images: GenericImage * GenericImage.
 
template<class PixType2 , NRT_ENABLE_IF_PIXEL(PixType2) >
GenericImage nrt::operator* (GenericImage const &lhs, PixType2 const &rhs)
 Product of everypixel of a GenericImage by a constant: GenericImage * T.
 
template<class PixType1 , NRT_ENABLE_IF_PIXEL(PixType1) >
GenericImage nrt::operator* (PixType1 const &lhs, GenericImage const &rhs)
 Product of everypixel of a GenericImage by a constant: T * GenericImage.
 
GenericImage nrt::operator/ (GenericImage const &lhs, GenericImage const &rhs)
 Pointwise division of two GenericImage images: GenericImage / GenericImage. More...
 
template<class PixType2 , NRT_ENABLE_IF_PIXEL(PixType2) >
GenericImage nrt::operator/ (GenericImage const &lhs, PixType2 const &rhs)
 Division of every pixel of a GenericImage by a constant: GenericImage / T. More...
 
template<class PixType1 , NRT_ENABLE_IF_PIXEL(PixType1) >
GenericImage nrt::operator/ (PixType1 const &lhs, GenericImage const &rhs)
 Division of a constant by every pixel of a GenericImage: T / GenericImage. More...