SMIL  0.8
 All Classes Functions Variables Groups Pages
Transform
+ Collaboration diagram for Transform:

Functions

template<class T >
RES_T addBorder (const Image< T > &imIn, const size_t &bSize, Image< T > &imOut, const T &borderValue=ImDtTypes< T >::max())
 Add a border of size bSize around the original image. More...
 
template<class T >
RES_T crop (const Image< T > &imIn, size_t startX, size_t startY, size_t startZ, size_t sizeX, size_t sizeY, size_t sizeZ, Image< T > &imOut)
 Crop image. More...
 
template<class T >
RES_T resize (Image< T > &imIn, size_t sx, size_t sy, Image< T > &imOut)
 2D bilinear resize algorithm. More...
 
template<class T >
RES_T resize (Image< T > &imIn, Image< T > &imOut)
 Resize imIn with the dimensions of imOut and put the result in imOut.
 
template<class T >
RES_T scale (Image< T > &imIn, double cx, double cy, Image< T > &imOut)
 Scale image If imIn has the size (W,H), the size of imOut will be (W*cx, H*cy).
 
template<class T >
RES_T trans (const Image< T > &imIn, int dx, int dy, int dz, Image< T > &imOut, T borderValue=ImDtTypes< T >::min())
 Image translation.
 
template<class T >
RES_T vFlip (Image< T > &imIn, Image< T > &imOut)
 Vertical flip (horizontal mirror). More...
 

Detailed Description

Function Documentation

RES_T smil::addBorder ( const Image< T > &  imIn,
const size_t &  bSize,
Image< T > &  imOut,
const T &  borderValue = ImDtTypes<T>::max() 
)

Add a border of size bSize around the original image.

RES_T smil::crop ( const Image< T > &  imIn,
size_t  startX,
size_t  startY,
size_t  startZ,
size_t  sizeX,
size_t  sizeY,
size_t  sizeZ,
Image< T > &  imOut 
)

Crop image.

Crop an image into an output image

Parameters
imIninput image
startX startY [startZ]start position of the zone in the input image
sizeX sizeY [sizeZ]size of the zone in the input image
imOutoutput image
Examples:
copy_crop.py
RES_T smil::resize ( Image< T > &  imIn,
size_t  sx,
size_t  sy,
Image< T > &  imOut 
)

2D bilinear resize algorithm.

Resize imIn to sx,sy -> imOut.

Quick implementation (needs better integration and optimization).

RES_T smil::vFlip ( Image< T > &  imIn,
Image< T > &  imOut 
)

Vertical flip (horizontal mirror).

Quick implementation (needs better integration and optimization).