ifw-odp 5.1.1
 
Loading...
Searching...
No Matches
clipm_priv_matrix.h
Go to the documentation of this file.
1
5
6#ifndef CLIPM_PRIV_MATRIX_H
7#define CLIPM_PRIV_MATRIX_H
8
9/*-----------------------------------------------------------------------------
10 Includes
11 -----------------------------------------------------------------------------*/
12
13#include <cpl.h>
14
15/*-----------------------------------------------------------------------------
16 Declaration Block
17 -----------------------------------------------------------------------------*/
18
19#ifdef __cplusplus
20extern "C" {
21#endif
22
23/*-----------------------------------------------------------------------------
24 Prototypes
25 -----------------------------------------------------------------------------*/
26
28 const cpl_image *image,
29 const cpl_size window_xxyy[4],
30 const int vflip);
31
32cpl_error_code clipm_priv_matrix_round( cpl_matrix *matrix);
33
35 const cpl_matrix *matrix);
36
38 const cpl_matrix *matrix);
39
41 const cpl_matrix *matrix,
42 const int *selection,
43 int select_nonzero);
44
46 cpl_matrix *matrix,
47 const cpl_vector *in,
48 cpl_size col,
49 cpl_size start_row);
51 cpl_vector *in,
52 const cpl_matrix *matrix,
53 cpl_size col,
54 cpl_size start_row);
55
57 double angle,
58 const double centre_xy[2],
59 cpl_matrix **transform,
60 cpl_matrix **shift);
61
63 const cpl_matrix *transf,
64 const cpl_matrix *shift,
65 cpl_matrix **inv_transf,
66 cpl_matrix **inv_shift);
67
69 const cpl_matrix *points,
70 const cpl_matrix *transformation,
71 const cpl_matrix *shift);
72
74 const double centre_xy[2],
75 double angle,
76 const double size_lw[2]);
77
78void clipm_priv_matrix_null( cpl_matrix **m);
79
80/*----------------------------------------------------------------------------*/
81
82#ifdef __cplusplus
83} /* extern "C" */
84#endif
85
86#endif /* CLIPM_PRIV_MATRIX_H */
cpl_matrix * clipm_priv_matrix_get_median_rows(const cpl_matrix *matrix)
Get the medians of the values in the matrix rows respectively.
Definition clipm_priv_matrix.c:244
cpl_error_code clipm_priv_matrix_copy_vector_col(cpl_vector *in, const cpl_matrix *matrix, cpl_size col, cpl_size start_row)
Copy the content of a matrix column (or a part of it) into a vector.
Definition clipm_priv_matrix.c:527
cpl_matrix * clipm_priv_matrix_create_corners_rectangle(const double centre_xy[2], double angle, const double size_lw[2])
Create a matrix containing the corner points of a rectangle.
Definition clipm_priv_matrix.c:847
cpl_error_code clipm_priv_matrix_transform_invert(const cpl_matrix *transf, const cpl_matrix *shift, cpl_matrix **inv_transf, cpl_matrix **inv_shift)
Compute the inverse transform.
Definition clipm_priv_matrix.c:668
cpl_matrix * clipm_priv_matrix_select_cols(const cpl_matrix *matrix, const int *selection, int select_nonzero)
Return selected columns in a new matrix.
Definition clipm_priv_matrix.c:366
cpl_error_code clipm_priv_matrix_transform_create_rot2d(double angle, const double centre_xy[2], cpl_matrix **transform, cpl_matrix **shift)
Create a 2d rotation matrix.
Definition clipm_priv_matrix.c:586
void clipm_priv_matrix_null(cpl_matrix **m)
Delete a CPL matrix object and set the pointer to NULL.
Definition clipm_priv_matrix.c:925
cpl_matrix * clipm_priv_matrix_transform_points(const cpl_matrix *points, const cpl_matrix *transformation, const cpl_matrix *shift)
Transform a pointlist.
Definition clipm_priv_matrix.c:761
cpl_error_code clipm_priv_matrix_round(cpl_matrix *matrix)
Round the elements of a matrix to the nearest integer.
Definition clipm_priv_matrix.c:202
cpl_matrix * clipm_priv_matrix_new_from_image_window(const cpl_image *image, const cpl_size window_xxyy[4], const int vflip)
Extract an image window into a matrix, flip vertically.
Definition clipm_priv_matrix.c:85
cpl_error_code clipm_priv_matrix_copy_col_vector(cpl_matrix *matrix, const cpl_vector *in, cpl_size col, cpl_size start_row)
Copy the content of a vector into a matrix column (or a part of it).
Definition clipm_priv_matrix.c:455
cpl_matrix * clipm_priv_matrix_get_mean_rows(const cpl_matrix *matrix)
Get the means of the values in the matrix rows respectively.
Definition clipm_priv_matrix.c:301