Functions | |
cpl_bivector * | cpl_bivector_new (int n) |
Create a new cpl_bivector. | |
cpl_bivector * | cpl_bivector_wrap_vectors (cpl_vector *x, cpl_vector *y) |
Create a new cpl_bivector from two cpl_vectors. | |
cpl_bivector * | cpl_bivector_duplicate (const cpl_bivector *in) |
Duplicate a cpl_bivector. | |
void | cpl_bivector_delete (cpl_bivector *f) |
Delete a cpl_bivector. | |
void | cpl_bivector_unwrap_vectors (cpl_bivector *f) |
Free memory associated to a cpl_bivector, excluding the two vectors. | |
void | cpl_bivector_dump (const cpl_bivector *f, FILE *stream) |
Dump a cpl_bivector as ASCII to a stream. | |
cpl_bivector * | cpl_bivector_load (const char *filename) |
Read a list of values from an ASCII file and create a cpl_bivector. | |
int | cpl_bivector_get_size (const cpl_bivector *in) |
Get the size of the cpl_bivector. | |
cpl_vector * | cpl_bivector_get_x (const cpl_bivector *in) |
Get a pointer to the x vector of the cpl_bivector. | |
cpl_vector * | cpl_bivector_get_y (const cpl_bivector *in) |
Get a pointer to the y vector of the cpl_bivector. | |
double * | cpl_bivector_get_x_data (const cpl_bivector *in) |
Get a pointer to the x data part of the cpl_bivector. | |
double * | cpl_bivector_get_y_data (const cpl_bivector *in) |
Get a pointer to the y data part of the cpl_bivector. | |
cpl_error_code | cpl_bivector_interpolate_linear (cpl_bivector *fout, const cpl_bivector *fref) |
Linear interpolation of a 1d-function. |
A cpl_bivector is composed of two vectors of the same size. It can be used to store 1d functions, with the x and y positions of the samples, offsets in x and y or simply positions in an image.
This module provides the possibility to compute a local maximum, to cross-correlate two signals, etc...
#include "cpl_bivector.h"
|
Delete a cpl_bivector.
|
|
Dump a cpl_bivector as ASCII to a stream.
Comment lines start with the hash character.
stream may be NULL in which case
|
|
Duplicate a cpl_bivector.
Possible _cpl_error_code_ set in this function:
|
|
Get the size of the cpl_bivector.
|
|
Get a pointer to the x vector of the cpl_bivector.
Possible _cpl_error_code_ set in this function:
|
|
Get a pointer to the x data part of the cpl_bivector.
|
|
Get a pointer to the y vector of the cpl_bivector.
Possible _cpl_error_code_ set in this function:
|
|
Get a pointer to the y data part of the cpl_bivector.
|
|
Linear interpolation of a 1d-function.
The linear interpolation will be done from the values in fref to the abscissa points in fout. The abscissa points of both fref and fout must be growing, x_i < x_i+1. The abscissa points of fout must be in range of those of fref (i.e. extrapolation is not allowed). fref must be of at least length 2. Possible _cpl_error_code_ set in this function:
|
|
Read a list of values from an ASCII file and create a cpl_bivector.
In addition to normal files, FIFO (see man mknod) are also supported. Possible _cpl_error_code_ set in this function:
|
|
Create a new cpl_bivector.
Possible _cpl_error_code_ set in this function:
|
|
Free memory associated to a cpl_bivector, excluding the two vectors.
|
|
Create a new cpl_bivector from two cpl_vectors.
Possible _cpl_error_code_ set in this function:
|