ddt
0.1
|
#include "ddt/imageMath.hpp"
Functions | |
bool | AddCplImages (cpl_image *image1, const cpl_image *image2) |
cpl_image * | AddCplImagesCreate (const cpl_image *image1, const cpl_image *image2) |
bool | AddScalarCplImage (cpl_image *image, double scalar) |
cpl_image * | AddScalarCplImageCreate (const cpl_image *image, double scalar) |
bool | SubtractCplImages (cpl_image *image1, const cpl_image *image2) |
cpl_image * | SubtractCplImagesCreate (const cpl_image *image1, const cpl_image *image2) |
bool | SubtractScalarCplImage (cpl_image *image, double scalar) |
cpl_image * | SubtractScalarCplImageCreate (const cpl_image *image, double scalar) |
bool | MultiplyCplImages (cpl_image *image1, const cpl_image *image2) |
cpl_image * | MultiplyCplImagesCreate (const cpl_image *image1, const cpl_image *image2) |
bool | MultiplyScalarCplImage (cpl_image *image, double scalar) |
cpl_image * | MultiplyScalarCplImageCreate (const cpl_image *image, double scalar) |
bool | DivideCplImages (cpl_image *image1, const cpl_image *image2) |
cpl_image * | DivideCplImagesCreate (const cpl_image *image1, const cpl_image *image2) |
bool | DivideScalarCplImage (cpl_image *image, double scalar) |
cpl_image * | DivideScalarCplImageCreate (const cpl_image *image, double scalar) |
bool AddCplImages | ( | cpl_image * | image1, |
const cpl_image * | image2 | ||
) |
This file is part of the DDT Image Handling Library and provides functions to perform arithmetical computations on CPL images.. Add two images. The result will be stored in the first image, which will be modified according to the result of the operation
image1 | first CPL image object, will also contain the result of the addition |
image2 | second CPL image object |
cpl_image* AddCplImagesCreate | ( | const cpl_image * | image1, |
const cpl_image * | image2 | ||
) |
Add two images. This function returns the newly created image. It supports images with different types. The returned image has the type of the first passed image.
image1 | first CPL image object |
image2 | second CPL image object |
bool AddScalarCplImage | ( | cpl_image * | image, |
double | scalar | ||
) |
Add scalar to CPL image. The result will be stored in the provided image.
image | CPL image object, will also contain the result of the addition |
scalar | the number to be added elementwise to the CPL image |
cpl_image* AddScalarCplImageCreate | ( | const cpl_image * | image, |
double | scalar | ||
) |
Add scalar to CPL image. This function returns a newly created image containing the result of the addition.
image | CPL image object |
scalar | the number to be added elementwise to the CPL image |
bool DivideCplImages | ( | cpl_image * | image1, |
const cpl_image * | image2 | ||
) |
Divide two images. The result will be stored in the first image, which will be modified according to the result of the operation
image1 | first CPL image object, will also contain the result of the division |
image2 | second CPL image object |
cpl_image* DivideCplImagesCreate | ( | const cpl_image * | image1, |
const cpl_image * | image2 | ||
) |
Divide two images. This function returns the newly created image. It supports images with different types. The returned image has the type of the first passed image.
image1 | first CPL image object |
image2 | second CPL image object |
bool DivideScalarCplImage | ( | cpl_image * | image, |
double | scalar | ||
) |
Divide CPL image with scalar. The result will be stored in the provided image. The scalar value has to be non-zero, otherwise an error will be returned
image | CPL image object, will also contain the result of the division |
scalar | the number to divide the CPL image elementwise with |
cpl_image* DivideScalarCplImageCreate | ( | const cpl_image * | image, |
double | scalar | ||
) |
Divide CPL image with scalar. This function returns a newly created image containing the result of the division. The scalar value has to be non-zero, otherwise an error will be returned
image | CPL image object |
scalar | the number to divide the CPL image elementwise with |
bool MultiplyCplImages | ( | cpl_image * | image1, |
const cpl_image * | image2 | ||
) |
Multiply two images. The result will be stored in the first image, which will be modified according to the result of the operation
image1 | first CPL image object, will also contain the result of the multiplication |
image2 | second CPL image object |
cpl_image* MultiplyCplImagesCreate | ( | const cpl_image * | image1, |
const cpl_image * | image2 | ||
) |
Multiply two images. This function returns the newly created image. It supports images with different types. The returned image has the type of the first passed image.
image1 | first CPL image object |
image2 | second CPL image object |
bool MultiplyScalarCplImage | ( | cpl_image * | image, |
double | scalar | ||
) |
Multiply scalar with CPL image. The result will be stored in the provided image.
image | CPL image object, will also contain the result of the multiplication |
scalar | the number to be multiplied elementwise with the CPL image |
cpl_image* MultiplyScalarCplImageCreate | ( | const cpl_image * | image, |
double | scalar | ||
) |
Multiply scalar with CPL image. This function returns a newly created image containing the result of the multiplication.
image | CPL image object |
scalar | the number to be multiplied elementwise with the CPL image |
bool SubtractCplImages | ( | cpl_image * | image1, |
const cpl_image * | image2 | ||
) |
Subtract two images. The result will be stored in the first image, which will be modified according to the result of the operation
image1 | first CPL image object, will also contain the result of the subtraction |
image2 | second CPL image object |
cpl_image* SubtractCplImagesCreate | ( | const cpl_image * | image1, |
const cpl_image * | image2 | ||
) |
Subtract two images. This function returns the newly created image. It supports images with different types. The returned image has the type of the first passed image.
image1 | first CPL image object |
image2 | second CPL image object |
bool SubtractScalarCplImage | ( | cpl_image * | image, |
double | scalar | ||
) |
Subtract scalar from CPL image. The result will be stored in the provided image.
image | CPL image object, will also contain the result of the subtraction |
scalar | the number to be subtracted elementwise from the CPL image |
cpl_image* SubtractScalarCplImageCreate | ( | const cpl_image * | image, |
double | scalar | ||
) |
Subtract scalar from CPL image. This function returns a newly created image containing the result of the subtraction.
image | CPL image object |
scalar | the number to be subtracted elementwise from the CPL image |