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

These methods are used to manipulate the ranges of values stored in Images, e.g. normalization and rectification.

Functions

template<class PixType >
void nrt::inplaceAttenuateBorders (Image< PixType > &a, int size)
 Progressive attenuation of borders by "size" pixels.
 
template<class PixType >
void nrt::inplaceRectify (Image< PixType > &dst)
 Half-wave rectify an Image. More...
 
template<class PixType >
void nrt::inplaceNormalize (Image< PixType > &dst, PixType const &mi, PixType const &ma)
 Normalize pixel values to range [mi .. ma].
 
template<class PixType >
void nrt::inplaceNormalize (Image< PixType > &dst, PixType const &mi, PixType const &ma, PixType &oldmi, PixType &oldma)
 Normalize pixel values to range [mi .. ma], also get old range back into [oldmi.. oldma].
 
template<NRT_PROMOTE_PIX(void) >
Image< DestType > const nrt::normalize (Image< PixType > const src, DestType const &mi, DestType const &ma)
 Normalize pixel values to range [mi .. ma].
 
template<NRT_PROMOTE_PIX(void) >
Image< DestType > nrt::normalize (Image< PixType > const src, DestType const &mi, DestType const &ma, PixType &oldmi, PixType &oldma)
 Normalize pixel values to range [mi .. ma], also get old range back into [oldmi.. oldma].
 
template<class promo = void>
GenericImage const nrt::normalize (GenericImage const src, double const &mi, double const &ma)
 Normalize pixel values to range [mi .. ma], GenericImage version.
 
template<NRT_PROMOTE_PIX(float) >
Image< DestType > const nrt::zmuv (Image< PixType > const src)
 Normalize pixel values to zero mean, unit variance (ZMUV)
 
template<class PixType >
void nrt::inplaceZmuv (Image< PixType > &src)
 Normalize pixel values to zero mean, unit variance (ZMUV)
 

Function Documentation

template<class PixType >
void nrt::inplaceRectify ( nrt::Image< PixType > &  dst)

Half-wave rectify an Image.

This is equivalent to perform pixel = std::max(0, pixel) on each pixel of the Image.

Definition at line 94 of file RangeOpsImpl.H.