|
DCMTK
Version 3.6.1 20120515
OFFIS DICOM Toolkit
|
Template class to flip images (on pixel data level). More...
Inheritance diagram for DiFlipTemplate< T >:Public Member Functions | |
| DiFlipTemplate (DiPixel *pixel, const Uint16 columns, const Uint16 rows, const Uint32 frames, const int horz, const int vert) | |
| constructor. | |
| DiFlipTemplate (const int planes, const Uint16 columns, const Uint16 rows, const Uint32 frames) | |
| constructor. | |
| virtual | ~DiFlipTemplate () |
| destructor | |
| void | flipData (const T *src[], T *dest[], const int horz, const int vert) |
| choose algorithm depending on flipping mode | |
Protected Member Functions | |
| void | flipHorz (const T *src[], T *dest[]) |
| flip source image horizontally and store result in destination image | |
| void | flipVert (const T *src[], T *dest[]) |
| flip source image vertically and store result in destination image | |
| void | flipHorzVert (const T *src[], T *dest[]) |
| flip source image horizontally and vertically and store result in destination image | |
Private Member Functions | |
| void | flipHorz (T *data[]) |
| flip image horizontally and store result in the same storage area | |
| void | flipVert (T *data[]) |
| flip image vertically and store result in the same storage area | |
| void | flipHorzVert (T *data[]) |
| flip image horizontally and vertically and store result in the same storage area | |
Template class to flip images (on pixel data level).
horizontally and vertically
| DiFlipTemplate< T >::DiFlipTemplate | ( | DiPixel * | pixel, |
| const Uint16 | columns, | ||
| const Uint16 | rows, | ||
| const Uint32 | frames, | ||
| const int | horz, | ||
| const int | vert | ||
| ) | [inline] |
constructor.
This method is used to flip an image and store the result in the same storage area.
| pixel | pointer to object where the pixel data are stored |
| columns | width of the image |
| rows | height of the image |
| frames | number of frames |
| horz | flags indicating whether to flip horizontally or not |
| vert | flags indicating whether to flip vertically or not |
| DiFlipTemplate< T >::DiFlipTemplate | ( | const int | planes, |
| const Uint16 | columns, | ||
| const Uint16 | rows, | ||
| const Uint32 | frames | ||
| ) | [inline] |
constructor.
This method is used to perform only the preparation and to start flipping later with method 'flipData()'
| planes | number of planes (1 or 3) |
| columns | width of the image |
| rows | height of the image |
| frames | number of frames |
| void DiFlipTemplate< T >::flipData | ( | const T * | src[], |
| T * | dest[], | ||
| const int | horz, | ||
| const int | vert | ||
| ) | [inline] |
choose algorithm depending on flipping mode
| src | array of pointers to source image pixels |
| dest | array of pointers to destination image pixels |
| horz | flags indicating whether to flip horizontally or not |
| vert | flags indicating whether to flip vertically or not |
| void DiFlipTemplate< T >::flipHorz | ( | const T * | src[], |
| T * | dest[] | ||
| ) | [inline, protected] |
flip source image horizontally and store result in destination image
| src | array of pointers to source image pixels |
| dest | array of pointers to destination image pixels |
| void DiFlipTemplate< T >::flipHorz | ( | T * | data[] | ) | [inline, private] |
flip image horizontally and store result in the same storage area
| data | array of pointers to source/destination image pixels |
| void DiFlipTemplate< T >::flipHorzVert | ( | const T * | src[], |
| T * | dest[] | ||
| ) | [inline, protected] |
flip source image horizontally and vertically and store result in destination image
| src | array of pointers to source image pixels |
| dest | array of pointers to destination image pixels |
| void DiFlipTemplate< T >::flipHorzVert | ( | T * | data[] | ) | [inline, private] |
flip image horizontally and vertically and store result in the same storage area
| data | array of pointers to source/destination image pixels |
| void DiFlipTemplate< T >::flipVert | ( | const T * | src[], |
| T * | dest[] | ||
| ) | [inline, protected] |
flip source image vertically and store result in destination image
| src | array of pointers to source image pixels |
| dest | array of pointers to destination image pixels |
| void DiFlipTemplate< T >::flipVert | ( | T * | data[] | ) | [inline, private] |
flip image vertically and store result in the same storage area
| data | array of pointers to source/destination image pixels |