SMIL 1.1.2
Loading...
Searching...
No Matches

Detailed Description

+ Collaboration diagram for Image View:

Functions

template<class T >
RES_T vertFlip (Image< T > &imIn, Image< T > &imOut)
 vertFlip() : Vertical Flip
 
template<class T >
RES_T vertFlip (Image< T > &im)
 vertFlip() : Vertical Flip
 
template<class T >
RES_T horizFlip (Image< T > &imIn, Image< T > &imOut)
 horizFlip() : Horizontal Flip
 
template<class T >
RES_T horizFlip (Image< T > &im)
 horizFlip() : Horizontal Flip
 
template<class T >
RES_T rotateX90 (Image< T > &imIn, int count, Image< T > &imOut)
 rotateX90() - Rotate an image by an angle multiple of 90 degres
 
template<class T >
RES_T rotateX90 (Image< T > &im, int count)
 rotateX90() - Rotate an image by an angle multiple of 90 degres
 
template<class T >
RES_T translate (const Image< T > &imIn, int dx, int dy, int dz, Image< T > &imOut, T borderValue=ImDtTypes< T >::min())
 translate() - Image translation.
 
template<class T >
ResImage< T > translate (const Image< T > &imIn, int dx, int dy, int dz)
 translate() - Image translation.
 
template<class T >
RES_T translate (const Image< T > &imIn, int dx, int dy, Image< T > &imOut, T borderValue=ImDtTypes< T >::min())
 translate() - 2D Image translation.
 
template<class T >
ResImage< T > translate (const Image< T > &imIn, int dx, int dy)
 translate() - 2D Image translation.
 

Function Documentation

◆ vertFlip() [1/2]

template<class T >
RES_T vertFlip ( Image< T > &  imIn,
Image< T > &  imOut 
)

vertFlip() : Vertical Flip

Mirror an image using an horizontal line (or plan for 3D images) in the center of the image. In 3D images, each slice is flipped vertically.

Parameters
[in]imIn: input image
[out]imOut: output image

◆ vertFlip() [2/2]

template<class T >
RES_T vertFlip ( Image< T > &  im)

vertFlip() : Vertical Flip

Parameters
[in,out]im: input/output Image

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

◆ horizFlip() [1/2]

template<class T >
RES_T horizFlip ( Image< T > &  imIn,
Image< T > &  imOut 
)

horizFlip() : Horizontal Flip

Mirror an image using a vertical line (or plan for 3D images) in the center of the image. In 3D images, each slice is flipped horizontally.

Parameters
[in]imIn: input image
[out]imOut: output image

◆ horizFlip() [2/2]

template<class T >
RES_T horizFlip ( Image< T > &  im)

horizFlip() : Horizontal Flip

Parameters
[in,out]im: input/output Image

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

◆ rotateX90() [1/2]

template<class T >
RES_T rotateX90 ( Image< T > &  imIn,
int  count,
Image< T > &  imOut 
)

rotateX90() - Rotate an image by an angle multiple of 90 degres

Parameters
[in]imIn: input Image
[in]count: number of 90 degres steps to rotate
[out]imOut: output Image
Note
  • If count equals 0, just copy the input image into the output image.
  • When calling this function on 3D images, rotation is done around z axis.
  • Rotation around x or y axis is possible thanks to matTranspose() call. See the example below on how to rotate around y axis.

Example : Rotation around axis y

import smilPython as sp
imIn = sp.Image(10, 10, 10)
imOut = sp.Image(im)
imTmp = sp.Image(im)
# rotation 90 degres around Y axis
# 1. exchange axes y and z
sp.matTranspose(imIn, "xzy", imTmp)
# 2. rotate image around new z axis
sp.rotateX90(imTmp, 1, imTmp)
# 3. put axis y back
sp.matTranspose(imTmp, "xzy", imOut)

◆ rotateX90() [2/2]

template<class T >
RES_T rotateX90 ( Image< T > &  im,
int  count 
)

rotateX90() - Rotate an image by an angle multiple of 90 degres

Parameters
[in,out]im: input/output Image
[in]count: number of 90 degres steps to rotate

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

◆ translate() [1/4]

template<class T >
RES_T translate ( const Image< T > &  imIn,
int  dx,
int  dy,
int  dz,
Image< T > &  imOut,
borderValue = ImDtTypes<T>::min() 
)

translate() - Image translation.

Parameters
[in]imIn: input image
[in]dx,dy,dz: shift to be applied
[out]imOut: output image
[in]borderValue: value to be assigned to moved pixels

◆ translate() [2/4]

template<class T >
ResImage< T > translate ( const Image< T > &  imIn,
int  dx,
int  dy,
int  dz 
)

translate() - Image translation.

Parameters
[in]imIn: input image
[in]dx,dy,dz: shift to be applied
Returns
translated image

◆ translate() [3/4]

template<class T >
RES_T translate ( const Image< T > &  imIn,
int  dx,
int  dy,
Image< T > &  imOut,
borderValue = ImDtTypes<T>::min() 
)

translate() - 2D Image translation.

The same translation is applied to each slice

Parameters
[in]imIn: input image
[in]dx,dy: shift to be applied
[out]imOut: output image
[in]borderValue: value to be assigned to moved pixels

◆ translate() [4/4]

template<class T >
ResImage< T > translate ( const Image< T > &  imIn,
int  dx,
int  dy 
)

translate() - 2D Image translation.

Parameters
[in]imIn: input image
[in]dx,dy: shift to be applied
Returns
translated image