Template class to rotate images (on pixel data level).
More...
List of all members.
Public Member Functions |
| DiRotateTemplate (DiPixel *pixel, const Uint16 src_cols, const Uint16 src_rows, const Uint16 dest_cols, const Uint16 dest_rows, const Uint32 frames, const int degree) |
| constructor.
|
| DiRotateTemplate (const int planes, const Uint16 src_cols, const Uint16 src_rows, const Uint16 dest_cols, const Uint16 dest_rows, const Uint32 frames) |
| constructor.
|
virtual | ~DiRotateTemplate () |
| destructor
|
void | rotateData (const T *src[], T *dest[], const int degree) |
| choose algorithm depending on rotation angle
|
Protected Member Functions |
void | rotateLeft (const T *src[], T *dest[]) |
| rotate source image left and store result in destination image
|
void | rotateRight (const T *src[], T *dest[]) |
| rotate source image right and store result in destination image
|
void | rotateTopDown (const T *src[], T *dest[]) |
| rotate source image top-down and store result in destination image
|
Private Member Functions |
void | rotateLeft (T *data[]) |
| rotate image left and store result in the same storage area
|
void | rotateRight (T *data[]) |
| rotate image right and store result in the same storage area
|
void | rotateTopDown (T *data[]) |
| rotate image top-down and store result in the same storage area
|
Detailed Description
template<class T>
class DiRotateTemplate< T >
Template class to rotate images (on pixel data level).
by steps of 90 degrees
Constructor & Destructor Documentation
template<class T >
DiRotateTemplate< T >::DiRotateTemplate |
( |
DiPixel * |
pixel, |
|
|
const Uint16 |
src_cols, |
|
|
const Uint16 |
src_rows, |
|
|
const Uint16 |
dest_cols, |
|
|
const Uint16 |
dest_rows, |
|
|
const Uint32 |
frames, |
|
|
const int |
degree |
|
) |
| [inline] |
constructor.
This method is used to rotate an image and store the result in the same storage area.
- Parameters:
-
pixel | pointer to object where the pixel data are stored |
src_cols | original width of the image |
src_rows | original height of the image |
dest_cols | new width of the image |
dest_rows | new height of the image |
frames | number of frames |
degree | angle by which the image should be rotated |
template<class T >
DiRotateTemplate< T >::DiRotateTemplate |
( |
const int |
planes, |
|
|
const Uint16 |
src_cols, |
|
|
const Uint16 |
src_rows, |
|
|
const Uint16 |
dest_cols, |
|
|
const Uint16 |
dest_rows, |
|
|
const Uint32 |
frames |
|
) |
| [inline] |
constructor.
This method is used to perform only the preparation and to start rotation later with method 'rotateData()'
- Parameters:
-
planes | number of planes (1 or 3) |
src_cols | original width of the image |
src_rows | original height of the image |
dest_cols | new width of the image |
dest_rows | new height of the image |
frames | number of frames |
Member Function Documentation
choose algorithm depending on rotation angle
- Parameters:
-
src | array of pointers to source image pixels |
dest | array of pointers to destination image pixels |
degree | angle by which the image should be rotated |
rotate source image left and store result in destination image
- Parameters:
-
src | array of pointers to source image pixels |
dest | array of pointers to destination image pixels |
rotate image left and store result in the same storage area
- Parameters:
-
data | array of pointers to source/destination image pixels |
rotate source image right and store result in destination image
- Parameters:
-
src | array of pointers to source image pixels |
dest | array of pointers to destination image pixels |
rotate image right and store result in the same storage area
- Parameters:
-
data | array of pointers to source/destination image pixels |
rotate source image top-down and store result in destination image
- Parameters:
-
src | array of pointers to source image pixels |
dest | array of pointers to destination image pixels |
rotate image top-down and store result in the same storage area
- Parameters:
-
data | array of pointers to source/destination image pixels |
The documentation for this class was generated from the following file:
- dcmimgle/include/dcmtk/dcmimgle/dirotat.h