ddt  0.1
Functions
imageProc.hpp File Reference
#include <vector>
#include <cpl.h>

Go to the source code of this file.

Functions

bool RotateCplImage (cpl_image *image, int rotate=0)
 
bool FlipCplImage (cpl_image *image, int angle=0)
 
bool ThresholdCplImage (cpl_image *image, double lower_bound, double higher_bound, double low_cut_value, double high_cut_value)
 

Function Documentation

◆ FlipCplImage()

bool FlipCplImage ( cpl_image *  image,
int  angle 
)

Flip an image on mirror line.

Parameters
imageCPL image object
angleFlip 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.

The usage is as follows:

#include "ddt/imageProc.hpp" ... using namespace ddt; Rotate an image.

Parameters
imageCPL image object
rotateRotate 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
imageCPL image object
lower_boundlower pixel value threshold
higher_boundhigher pixel value threshold
low_cut_valuevalue to assign to pixels below lower threshold
high_cut_valuevalue to assign to pixels above higher threshold
Returns
bool indicating success of cutting