iLab Neuromorphic Robotics Toolkit  0.1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Image Transformations

These methods provide various transformations on Images, such as rotations, shifts, etc.

See Also
Image Reshaping Operations
Image macros to facilitate promotion of pixel types
Image class template and related classes and functions

Functions

template<class PixType >
Image< PixType > nrt::flipVertical (const Image< PixType > &src)
 Flip an image vertically, so that the top row becomes the bottom row.
 
template<class PixType >
Image< PixType > nrt::flipHorizontal (const Image< PixType > &src)
 Flip an image horizontally, so that the left column becomes the right column.
 
template<NRT_PROMOTE_PIX(void) >
Image< DestType > nrt::shiftImage (Image< PixType > const src, float const dx, float const dy)
 Shift an image by a non-integer displacement (float dx, float dy)
 
template<class PixType >
Image< PixType > nrt::shiftClean (Image< PixType > const src, int const dx, int const dy, PixType bgval=PixType(0))
 Shift an image by an integer displacement (int dx, int dy), without wraparound.
 
template<NRT_PROMOTE_PIX(void) >
Image< DestType > nrt::rotate (Image< PixType > const src, Point2D< int32 > const p, const float angRad)
 Rotate an Image about the point p by the angle angRad(in Radians) More...
 
template<NRT_PROMOTE_PIX(void) >
Image< DestType > nrt::rotate (Image< PixType > const src, const float angRad)
 Rotate an Image about its center by the angle angRad(in Radians) More...
 

Function Documentation

template<NRT_PROMOTE_PIX(void) >
Image<DestType> nrt::rotate ( Image< PixType > const  src,
Point2D< int32 > const  p,
const float  angRad 
)

Rotate an Image about the point p by the angle angRad(in Radians)

The resulting Image will have the same dimensions as src, thus any parts of the rotated Image that fall outside of these dimensions will be clipped.

Referenced by nrt::RotatedRectangle< T >::minEnclosingRectangle().

template<NRT_PROMOTE_PIX(void) >
Image<DestType> nrt::rotate ( Image< PixType > const  src,
const float  angRad 
)

Rotate an Image about its center by the angle angRad(in Radians)

This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.