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

Author
Unknown

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 OpenCVImpl.H.

Go to the source code of this file.

Namespaces

 nrt
 Reserved namespace for NRT core classes and functions.
 

Functions

template<class T >
bool nrt::cvhelpers::matchesIplDepth (int depth)
 Decide whether the given OpenCV IPL depth ID (e.g. IPL_DEPTH_8U) matches the depth of the given NRT pixel type.
 
template<>
bool nrt::cvhelpers::matchesIplDepth< uint8 > (int depth)
 
template<>
bool nrt::cvhelpers::matchesIplDepth< int8 > (int depth)
 
template<>
bool nrt::cvhelpers::matchesIplDepth< uint16 > (int depth)
 
template<>
bool nrt::cvhelpers::matchesIplDepth< int16 > (int depth)
 
template<>
bool nrt::cvhelpers::matchesIplDepth< int32 > (int depth)
 
template<>
bool nrt::cvhelpers::matchesIplDepth< float > (int depth)
 
template<>
bool nrt::cvhelpers::matchesIplDepth< double > (int depth)
 
template<class T >
bool nrt::cvhelpers::matchesCvDepth (int depth)
 Decide whether the given OpenCV depth ID (e.g. CV_8U) matches the depth of the given NRT pixel type.
 
template<>
bool nrt::cvhelpers::matchesCvDepth< uint8 > (int depth)
 
template<>
bool nrt::cvhelpers::matchesCvDepth< int8 > (int depth)
 
template<>
bool nrt::cvhelpers::matchesCvDepth< uint16 > (int depth)
 
template<>
bool nrt::cvhelpers::matchesCvDepth< int16 > (int depth)
 
template<>
bool nrt::cvhelpers::matchesCvDepth< int32 > (int depth)
 
template<>
bool nrt::cvhelpers::matchesCvDepth< float > (int depth)
 
template<>
bool nrt::cvhelpers::matchesCvDepth< double > (int depth)
 
std::string nrt::cvhelpers::iplDepth2String (int depth)
 Convert an OpenCV IPL depth ID to a string for error messages. More...
 
std::string nrt::cvhelpers::cvDepth2String (int depth)
 Convert an OpenCV depth ID to a string for error messages. More...
 
template<class T >
int nrt::cvhelpers::type2IplDepth ()
 Convert a POD type to an OpenCV IPL type ID (e.g. float will convert to IPL_DEPTH_32F).
 
template<>
int nrt::cvhelpers::type2IplDepth< uint8 > ()
 
template<>
int nrt::cvhelpers::type2IplDepth< int8 > ()
 
template<>
int nrt::cvhelpers::type2IplDepth< uint16 > ()
 
template<>
int nrt::cvhelpers::type2IplDepth< int16 > ()
 
template<>
int nrt::cvhelpers::type2IplDepth< int32 > ()
 
template<>
int nrt::cvhelpers::type2IplDepth< float > ()
 
template<>
int nrt::cvhelpers::type2IplDepth< double > ()
 
template<class T >
int nrt::cvhelpers::type2CvDepth ()
 Convert a POD type to an OpenCV depth ID (e.g. float will convert to CV_32F).
 
template<>
int nrt::cvhelpers::type2CvDepth< uint8 > ()
 
template<>
int nrt::cvhelpers::type2CvDepth< int8 > ()
 
template<>
int nrt::cvhelpers::type2CvDepth< uint16 > ()
 
template<>
int nrt::cvhelpers::type2CvDepth< int16 > ()
 
template<>
int nrt::cvhelpers::type2CvDepth< int32 > ()
 
template<>
int nrt::cvhelpers::type2CvDepth< float > ()
 
template<>
int nrt::cvhelpers::type2CvDepth< double > ()
 
template<class PixType >
int nrt::cvhelpers::pixType2CvType ()
 Convert an nrt pixel type to an OpenCV type ID (e.g. PixRGB<byte> will convert to CV_8UC3).