20#ifndef HDRL_PROTOTYPING_H
21#define HDRL_PROTOTYPING_H
30 cpl_matrix ** coeffs);
34 const cpl_imagelist * images,
35 cpl_imagelist * bkg_images,
45 const cpl_matrix * x);
48 cpl_matrix * mat1,
const cpl_matrix * mat2);
51 cpl_matrix * mat2,
int j_2);
54 mat1,
const cpl_matrix * mat2);
58 const cpl_matrix * d, cpl_matrix * dmat);
63 const cpl_matrix * rhs,
double alpha);
68 mat1,
const cpl_matrix * mat2);
71 const cpl_matrix * mat2, cpl_matrix * product);
cpl_error_code hdrl_mime_compute_polynomial_bkg(const cpl_imagelist *images, cpl_imagelist *bkg_images, int dim_X, int dim_Y, cpl_matrix **coeffs)
Fit smooth background for a list of images.
Definition hdrl_prototyping.c:362
cpl_matrix * hdrl_mime_legendre_tensors_create(int nx, int ny, int npx, int npy)
Create tensor products of Legendre polynomials.
Definition hdrl_prototyping.c:514
cpl_error_code hdrl_mime_matrix_mask_rows(cpl_matrix *mat, const cpl_mask *mask)
Fill matrix rows with zeros as indicated by a mask.
Definition hdrl_prototyping.c:945
cpl_matrix * hdrl_mime_linalg_solve_tikhonov(const cpl_matrix *mat, const cpl_matrix *rhs, double alpha)
Solve an overdetermined linear system in the least-squares sense.
Definition hdrl_prototyping.c:1051
cpl_error_code hdrl_mime_matrix_copy_column(const cpl_matrix *mat1, int j_1, cpl_matrix *mat2, int j_2)
Copy a column from one matrix to another matrix.
Definition hdrl_prototyping.c:762
cpl_image * hdrl_mime_image_polynomial_bkg(cpl_image *image, int dim_X, int dim_Y, cpl_matrix **coeffs)
Definition hdrl_prototyping.c:311
cpl_matrix * hdrl_mime_linalg_pairwise_column_tensor_products_create(const cpl_matrix *mat1, const cpl_matrix *mat2)
Create selected pairwise tensor products of the columns of two matrices.
Definition hdrl_prototyping.c:693
cpl_matrix * hdrl_mime_matrix_product_left_transpose_create(const cpl_matrix *mat1, const cpl_matrix *mat2)
Create the product of the transpose of a matrix with another matrix.
Definition hdrl_prototyping.c:1173
cpl_error_code hdrl_mime_matrix_rescale_rows(const cpl_matrix *mat, const cpl_matrix *d, cpl_matrix *dmat)
Multiply the rows of a matrix by given factors.
Definition hdrl_prototyping.c:991
cpl_matrix * hdrl_mime_tensor_weights_create(int nx, int ny)
Create tensor product weights.
Definition hdrl_prototyping.c:868
cpl_matrix * hdrl_mime_legendre_polynomials_create(int npoly, double a, double b, const cpl_matrix *x)
Create the Legendre polynomial basis on the interval (a,b).
Definition hdrl_prototyping.c:617
cpl_image * hdrl_get_spatial_freq(cpl_image *ima, double gausfilt, int mirrorx, int mirrory)
Get low spatial frequency componenets from an image using the FFTW.
Definition hdrl_prototyping.c:77
cpl_matrix * hdrl_mime_matrix_linspace_create(int n, double a, double b)
Create equally spaced nodes.
Definition hdrl_prototyping.c:572
cpl_matrix * hdrl_mime_linalg_normal_equations_create(const cpl_matrix *mat, double alpha)
Create the matrix transpose(A) * A + alpha for given A and alpha.
Definition hdrl_prototyping.c:1107
cpl_matrix * hdrl_mime_linalg_tensor_products_columns_create(const cpl_matrix *mat1, const cpl_matrix *mat2)
Create the tensor products of the columns of two matrices.
Definition hdrl_prototyping.c:806
cpl_error_code hdrl_mime_matrix_product(const cpl_matrix *mat1, const cpl_matrix *mat2, cpl_matrix *product)
Fill a matrix with the product of two given matrices.
Definition hdrl_prototyping.c:1241