Functions | |
| cpl_image * | cpl_image_add (const cpl_image *image1, const cpl_image *image2) |
| Add two images. More... | |
| cpl_image * | cpl_image_subtract (const cpl_image *image1, const cpl_image *image2) |
| Subtract two images. More... | |
| cpl_image * | cpl_image_multiply (const cpl_image *image1, const cpl_image *image2) |
| Multiply two images. More... | |
| cpl_image * | cpl_image_divide (const cpl_image *image1, const cpl_image *image2) |
| Divide two images. More... | |
| cpl_error_code | cpl_image_add_local (cpl_image *im1, const cpl_image *im2) |
| Add two images, store the result in the first image. More... | |
| cpl_error_code | cpl_image_subtract_local (cpl_image *im1, const cpl_image *im2) |
| Subtract two images, store the result in the first image. More... | |
| cpl_error_code | cpl_image_multiply_local (cpl_image *im1, const cpl_image *im2) |
| Multiply two images, store the result in the first image. More... | |
| cpl_error_code | cpl_image_divide_local (cpl_image *im1, const cpl_image *im2) |
| Divide two images, store the result in the first image. More... | |
| cpl_image * | cpl_image_const_op (const cpl_image *image_in, const double constant, const int operation) |
| Arithmetic between an image and a constant. More... | |
| cpl_error_code | cpl_image_const_op_local (cpl_image *image_out, const double constant, const int operation) |
| Arithmetic between an image and a constant. More... | |
| cpl_image * | cpl_image_normalize (const cpl_image *image_in, const int mode) |
| Normalise pixels in an image. More... | |
| cpl_error_code | cpl_image_threshold (const cpl_image *image_in, const double lo_cut, const double hi_cut, const double assign_lo_cut_in, const double assign_hi_cut_in) |
| Threshold an image to a given interval. More... | |
| cpl_image * | cpl_image_abs (const cpl_image *image_in) |
| Take the absolute value of an image. More... | |
| cpl_image * | cpl_image_average (const cpl_image *image_1, const cpl_image *image_2) |
| Build the average of two images. More... | |
| cpl_image * | cpl_image_collapse_subw (const cpl_image *in, const int llx, const int lly, const int urx, const int ury, const int direction) |
| Collapse an image region along its rows or columns. More... | |
| cpl_image * | cpl_image_collapse (const cpl_image *inimage, const int direction) |
| Collapse an image along its rows or columns. More... | |
| cpl_image * | cpl_image_collapse_median (const cpl_image *in, const int direction, const int discard_lo, const int discard_hi) |
| Collapse an image along its rows and columns, with filtering. More... | |
| cpl_image * | cpl_image_extract (const cpl_image *image_in, const int loleft_x, const int loleft_y, const int upright_x, const int upright_y) |
| Extract a rectangular zone from an image into another image. More... | |
| cpl_error_code | cpl_image_flip_local (cpl_image *im, const int angle) |
| Flip an image on a given miror line. More... | |
#include "cpl_image_basic.h"
|
|
Take the absolute value of an image.
Possible _cpl_error_code_ set in this function:
|
|
||||||||||||
|
Add two images.
Possible _cpl_error_code_ set in this function:
|
|
||||||||||||
|
Add two images, store the result in the first image.
Possible _cpl_error_code_ set in this function:
|
|
||||||||||||
|
Build the average of two images.
Possible _cpl_error_code_ set in this function:
|
|
||||||||||||
|
Collapse an image along its rows or columns.
Collapse along y:
p7 p8 p9 Input image is a 3x3 image containing 9 pixels.
p4 p5 p6 The output is an image containing one row with
p1 p2 p3 3 pixels A, B, C, where:
----------
A B C A = p1+p4+p7
B = p2+p5+p8
C = p3+p6+p9
Provide the collapsing direction as an int. Give 0 to collapse along y (sum of rows) and get an image with a single row in output, or give 1 to collapse along x (sym of columns) to get an image with a single column in output. Only the good pixels are collapsed. Images can be CPL_TYPE_INT, CPL_TYPE_FLOAT or CPL_TYPE_DOUBLE. The returned image must be deallocated using cpl_image_delete(). Possible _cpl_error_code_ set in this function:
|
|
||||||||||||||||||||
|
Collapse an image along its rows and columns, with filtering.
Possible _cpl_error_code_ set in this function:
|
|
||||||||||||||||||||||||||||
|
Collapse an image region along its rows or columns.
Possible _cpl_error_code_ set in this function:
|
|
||||||||||||||||
|
Arithmetic between an image and a constant.
|
|
||||||||||||||||
|
Arithmetic between an image and a constant.
|
|
||||||||||||
|
Divide two images.
|
|
||||||||||||
|
Divide two images, store the result in the first image.
|
|
||||||||||||||||||||||||
|
Extract a rectangular zone from an image into another image.
Coordinates must be provided in the FITS convention: lower left corner of the image is at (1,1), x increasing from left to right, y increasing from bottom to top. Images can be CPL_TYPE_INT, CPL_TYPE_FLOAT or CPL_TYPE_DOUBLE. The returned image must be deallocated using cpl_image_delete(). Possible _cpl_error_code_ set in this function:
|
|
||||||||||||
|
Flip an image on a given miror line.
angle can take one of the following values:
|
|
||||||||||||
|
Multiply two images.
|
|
||||||||||||
|
Multiply two images, store the result in the first image.
|
|
||||||||||||
|
Normalise pixels in an image.
Possible normalisations are:
|
|
||||||||||||
|
Subtract two images.
|
|
||||||||||||
|
Subtract two images, store the result in the first image.
|
|
||||||||||||||||||||||||
|
Threshold an image to a given interval.
Possible _cpl_error_code_ set in this function:
|
1.2.14 written by Dimitri van Heesch,
© 1997-2002