Image processing function declaration. This file is part of the DDT Image Handling Library and provides functions to process CPL images.
More...
|
|
bool | RotateCplImage (cpl_image *image, int rotate) |
|
bool | FlipCplImage (cpl_image *image, int angle) |
|
bool | ThresholdCplImage (cpl_image *image, double lower_bound, double higher_bound, double low_cut_value, double high_cut_value) |
|
Image processing function declaration. This file is part of the DDT Image Handling Library and provides functions to process CPL images.
- Copyright
- (c) Copyright ESO 2020 All Rights Reserved ESO (eso.org) is an Intergovernmental Organization, and therefore special legal conditions apply.
- Author
- Christoph Bortlisz, CGI
- Since
- 2020/07/29
◆ FlipCplImage()
bool FlipCplImage |
( |
cpl_image * |
image, |
|
|
int |
angle |
|
) |
| |
Flip an image on mirror line.
- Parameters
-
image | CPL image object |
angle | Flip the image, using theta as multiples of (PI/4) 0: flip around the horizontal 1: flip around y=x 2: flip around the vertical 3: flip around y=-x |
- Returns
- bool indicating success of flipping
◆ RotateCplImage()
bool RotateCplImage |
( |
cpl_image * |
image, |
|
|
int |
rotate |
|
) |
| |
This file is part of the DDT Image Handling Library and provides functions to process CPL images. Rotate an image.
- Parameters
-
image | CPL image object |
rotate | Rotate the image by multiples of 90 deg -3: 270 degrees counterclockwise -2: 180 degrees counterclockwise -1: 90 degrees counterclockwise 0: do not turn +1: 90 degrees clockwise +2: 180 degrees clockwise +3: 270 degrees clockwise |
- Returns
- bool indicating success of rotation
◆ ThresholdCplImage()
bool ThresholdCplImage |
( |
cpl_image * |
image, |
|
|
double |
lower_bound, |
|
|
double |
higher_bound, |
|
|
double |
low_cut_value, |
|
|
double |
high_cut_value |
|
) |
| |
Threshold an image to an interval.
- Parameters
-
image | CPL image object |
lower_bound | lower pixel value threshold |
higher_bound | higher pixel value threshold |
low_cut_value | value to assign to pixels below lower threshold |
high_cut_value | value to assign to pixels above higher threshold |
- Returns
- bool indicating success of cutting