LibXtract 1.6.0
xtract_grid.h
Go to the documentation of this file.
1/* Part of LibXtract
2 *
3 * SPDX-FileCopyrightText: 2026 Jamie Bullock
4 * SPDX-License-Identifier: Zlib
5 */
6
8
9#ifndef XTRACT_GRID_H
10#define XTRACT_GRID_H
11
12#ifdef __cplusplus
13extern "C"
14{
15#endif
16
24
32 int xtract_grid_moments(const double *data, const int N, const void *argv, double *result);
33
41 int xtract_grid_central_moments(const double *data, const int N, const void *argv, double *result);
42
50 int xtract_normalised_moments(const double *data, const int N, const void *argv, double *result);
51
59 int xtract_hu_moments(const double *data, const int N, const void *argv, double *result);
60
70 int xtract_cooccurrence_matrix(const double *data, const int N, const void *argv, double *result);
71
79 int xtract_cooccurrence_contrast(const double *data, const int N, const void *argv, double *result);
80
88 int xtract_cooccurrence_correlation(const double *data, const int N, const void *argv, double *result);
89
99 int xtract_angular_second_moment(const double *data, const int N, const void *argv, double *result);
100
110 int xtract_inverse_difference_moment(const double *data, const int N, const void *argv, double *result);
111
119 int xtract_local_binary_patterns(const double *data, const int N, const void *argv, double *result);
120
122
123#ifdef __cplusplus
124}
125#endif
126
127#endif
int xtract_grid_central_moments(const double *data, const int N, const void *argv, double *result)
Extract the central moments of a grid up to the third order: its moments with columns and rows number...
int xtract_hu_moments(const double *data, const int N, const void *argv, double *result)
Extract the seven Hu moments of a grid from its normalised moments: values that do not change when th...
int xtract_cooccurrence_contrast(const double *data, const int N, const void *argv, double *result)
Extract the contrast of a co-occurrence matrix: the mean square difference between the two levels of ...
int xtract_grid_moments(const double *data, const int N, const void *argv, double *result)
Extract the moments of a grid up to the third order.
int xtract_inverse_difference_moment(const double *data, const int N, const void *argv, double *result)
Extract the inverse difference moment of a co-occurrence matrix: the mean over the pairs of 1 / (1 + ...
int xtract_local_binary_patterns(const double *data, const int N, const void *argv, double *result)
Extract the histogram of the rotation-invariant uniform local binary patterns of a grid: how its elem...
int xtract_cooccurrence_matrix(const double *data, const int N, const void *argv, double *result)
Extract the co-occurrence matrix of the levels of a grid: how often each pair of levels occurs a give...
int xtract_cooccurrence_correlation(const double *data, const int N, const void *argv, double *result)
Extract the correlation of a co-occurrence matrix: the Pearson correlation coefficient of the level o...
int xtract_normalised_moments(const double *data, const int N, const void *argv, double *result)
Extract the normalised moments of a grid from its central moments: the central moments in a form that...
int xtract_angular_second_moment(const double *data, const int N, const void *argv, double *result)
Extract the angular second moment of a co-occurrence matrix: the sum of the squares of its values (Ha...