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

Author
Randolph Voorhies

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

Go to the source code of this file.

Namespaces

 nrt
 Reserved namespace for NRT core classes and functions.
 

Functions

template<class T , template< typename > class PixDest, class U , template< typename > class PixOutline>
void nrt::drawLine (Image< PixDest< T > > &image, Line< int32 > const &line, PixOutline< U > const &outlineColor, uint thickness=1)
 Draw a Line in the Image. More...
 
template<class T , class U >
void nrt::drawLineAA (Image< T > &image, Line< int32 > const &line, U const &outlineColor)
 Draw an antialiased Line in the Image. More...
 
template<class T , template< typename > class SourceColorT, class U , template< typename > class OutlineColorT, class V = byte, template< typename > class FillColorT = PixRGBA>
void nrt::drawPolygon (Image< SourceColorT< T >> &image, Polygon< int32 > const &polygon, OutlineColorT< U > const &outlineColor, uint thickness=1, FillColorT< V > const &fillColor=PixRGBA< byte >(0, 0, 0, 0))
 Draw a Polygon in the image. More...
 
template<class T , class U >
void nrt::drawPolygonAA (Image< T > &image, Polygon< int32 > const &polygon, U const &outlineColor)
 Draw an antialiased Polygon in the image. More...
 
template<class T , template< typename > class PixDest, class U , template< typename > class PixFill>
void nrt::drawDisk (Image< PixDest< T > > &dst, Circle< int32 > const &circle, PixFill< U > const &fillColor)
 Draw a Disk (filled-in circle) More...
 
template<class T , class U >
void nrt::drawCircle (Image< T > &image, Circle< int32 > const &circle, U const &outlineColor, uint thickness=1)
 Draw a Circle in the image. More...
 
template<class T , class U , class V = PixRGBA<byte>>
void nrt::drawEllipse (Image< T > &image, Point2D< int32 > const &center, const float radiusx, const float radiusy, const float skew, U const &outlineColor, uint thickness=1, V const &fillColor=PixRGBA< byte >(0, 0, 0, 0))
 Draw a Ellipse in the image. More...
 
template<class T , template< typename > class SourceColorT, class U , template< typename > class OutlineColorT, class V = byte, template< typename > class FillColorT = PixRGBA>
void nrt::drawRectangle (Image< SourceColorT< T >> &image, Rectangle< int32 > const &rect, OutlineColorT< U > const &outlineColor, uint thickness=1, FillColorT< V > const &fillColor=PixRGBA< byte >(0, 0, 0, 0))
 Draw a Rectangle in the Image. More...
 
template<class T , class OutlineColorT >
void nrt::drawCross (Image< T > &image, Point2D< int32 > const &center, OutlineColorT const &outlineColor, uint32 radius, uint32 thickness=1, float angle=0)
 Draw a cross in the Image. More...
 
template<class T , class OutlineColorT >
void nrt::DrawArrow (Image< T > &image, int32 xs, int32 ys, int32 xe, int32 ye, uint32 thickness=1, OutlineColorT const &outlineColor=PixRGB< byte >(0, 0, 255), float headSizeRatio=0.35f, float headAngle=15.0f)
 Draw an arrow in the Image. More...
 
template<class T , class OutlineColorT >
void nrt::drawGrid (Image< T > &image, const int32 spacingX, const int32 spacingY, const uint32 thickX=1, const uint32 thickY=1, OutlineColorT const &outlineColor=PixRGB< byte >(0, 0, 0))
 Draw a Grid in the image. More...
 
template<class T , class OutlineColorT >
void nrt::drawGrid (Image< T > &image, const uint32 nx, const uint32 ny, const uint32 thickness=1, OutlineColorT const &outlineColor=PixRGB< byte >(0, 0, 0))
 Draw a regular Grid in the image. More...