This file is indexed.

/usr/include/cpl_image_basic.h is in libcpl-dev 7.0-3+b1.

This file is owned by root:root, with mode 0o644.

The actual contents of the file can be viewed below.

  1
  2
  3
  4
  5
  6
  7
  8
  9
 10
 11
 12
 13
 14
 15
 16
 17
 18
 19
 20
 21
 22
 23
 24
 25
 26
 27
 28
 29
 30
 31
 32
 33
 34
 35
 36
 37
 38
 39
 40
 41
 42
 43
 44
 45
 46
 47
 48
 49
 50
 51
 52
 53
 54
 55
 56
 57
 58
 59
 60
 61
 62
 63
 64
 65
 66
 67
 68
 69
 70
 71
 72
 73
 74
 75
 76
 77
 78
 79
 80
 81
 82
 83
 84
 85
 86
 87
 88
 89
 90
 91
 92
 93
 94
 95
 96
 97
 98
 99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
/* $Id: cpl_image_basic.h,v 1.50 2013-07-24 09:45:53 llundin Exp $
 *
 * This file is part of the ESO Common Pipeline Library
 * Copyright (C) 2001-2008 European Southern Observatory
 *
 * This program is free software; you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation; either version 2 of the License, or
 * (at your option) any later version.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with this program; if not, write to the Free Software
 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
 */

/*
 * $Author: llundin $
 * $Date: 2013-07-24 09:45:53 $
 * $Revision: 1.50 $
 * $Name: not supported by cvs2svn $
 */

#ifndef CPL_IMAGE_BASIC_H
#define CPL_IMAGE_BASIC_H

/*-----------------------------------------------------------------------------
                                   Includes
 -----------------------------------------------------------------------------*/

#include "cpl_image.h"
#include "cpl_vector.h"

CPL_BEGIN_DECLS

/*-----------------------------------------------------------------------------
                                   Defines
 -----------------------------------------------------------------------------*/
/**
 * Each FFT mode is listed below.
 * The modes can be combined with bitwise or.
 */
#define CPL_FFT_DEFAULT      ((unsigned)0)
/* Inverse FFT */
#define CPL_FFT_INVERSE      ((unsigned)1 << 1)
/* No normalization */
#define CPL_FFT_UNNORMALIZED ((unsigned)1 << 2)
/* Swap halves of output */
#define CPL_FFT_SWAP_HALVES  ((unsigned)1 << 3)

enum _cpl_norm_ {
    CPL_NORM_SCALE,
    CPL_NORM_MEAN,
    CPL_NORM_FLUX,
    CPL_NORM_ABSFLUX
};

typedef enum _cpl_norm_ cpl_norm;

/*-----------------------------------------------------------------------------
                            Function prototypes
 -----------------------------------------------------------------------------*/

/* Basic operations */
cpl_image * cpl_image_add_create(const cpl_image *, const cpl_image *)
    CPL_ATTR_ALLOC;
cpl_image * cpl_image_subtract_create(const cpl_image *, const cpl_image *)
    CPL_ATTR_ALLOC;
cpl_image * cpl_image_multiply_create(const cpl_image *, const cpl_image *)
    CPL_ATTR_ALLOC;
cpl_image * cpl_image_divide_create(const cpl_image *, const cpl_image *)
    CPL_ATTR_ALLOC;
cpl_error_code cpl_image_add(cpl_image *, const cpl_image *);
cpl_error_code cpl_image_subtract(cpl_image *, const cpl_image *);
cpl_error_code cpl_image_multiply(cpl_image *, const cpl_image *);
cpl_error_code cpl_image_divide(cpl_image *, const cpl_image *);

cpl_error_code cpl_image_add_scalar(cpl_image *, double);
cpl_error_code cpl_image_subtract_scalar(cpl_image *, double);
cpl_error_code cpl_image_multiply_scalar(cpl_image *, double);
cpl_error_code cpl_image_divide_scalar(cpl_image *, double);
cpl_error_code cpl_image_power(cpl_image *, double);
cpl_error_code cpl_image_exponential(cpl_image *, double);
cpl_error_code cpl_image_logarithm(cpl_image *, double);
cpl_error_code cpl_image_normalise(cpl_image *, cpl_norm);
cpl_error_code cpl_image_abs(cpl_image *);
cpl_error_code cpl_image_hypot(cpl_image *,
                               const cpl_image *,
                               const cpl_image *);

cpl_error_code cpl_image_and(cpl_image *,
                             const cpl_image *,
                             const cpl_image *);
cpl_error_code cpl_image_or(cpl_image *,
                            const cpl_image *,
                            const cpl_image *);
cpl_error_code cpl_image_xor(cpl_image *,
                             const cpl_image *,
                             const cpl_image *);

cpl_error_code cpl_image_not(cpl_image *,
                             const cpl_image *);

cpl_error_code cpl_image_and_scalar(cpl_image *,
                                    const cpl_image *,
                                    cpl_bitmask);
cpl_error_code cpl_image_or_scalar(cpl_image *,
                                   const cpl_image *,
                                   cpl_bitmask);
cpl_error_code cpl_image_xor_scalar(cpl_image *,
                                    const cpl_image *,
                                    cpl_bitmask);

cpl_image * cpl_image_add_scalar_create(const cpl_image *, double)
    CPL_ATTR_ALLOC;
cpl_image * cpl_image_subtract_scalar_create(const cpl_image *, double)
    CPL_ATTR_ALLOC;
cpl_image * cpl_image_multiply_scalar_create(const cpl_image *, double)
    CPL_ATTR_ALLOC;
cpl_image * cpl_image_divide_scalar_create(const cpl_image *, double)
    CPL_ATTR_ALLOC;
cpl_image * cpl_image_power_create(const cpl_image *, double)
    CPL_ATTR_ALLOC;
cpl_image * cpl_image_exponential_create(const cpl_image *, double)
    CPL_ATTR_ALLOC;
cpl_image * cpl_image_logarithm_create(const cpl_image *, double)
    CPL_ATTR_ALLOC;
cpl_image * cpl_image_normalise_create(const cpl_image *, cpl_norm)
    CPL_ATTR_ALLOC;
cpl_image * cpl_image_abs_create(const cpl_image *)
    CPL_ATTR_ALLOC;

cpl_error_code cpl_image_threshold(cpl_image *, double, double, double, double);
cpl_image * cpl_image_average_create(const cpl_image *, const cpl_image *)
    CPL_ATTR_ALLOC;

/* Collapse functions */
cpl_image * cpl_image_collapse_window_create(const cpl_image *, cpl_size,
                                             cpl_size, cpl_size,
                                             cpl_size, int)
    CPL_ATTR_ALLOC;
cpl_image * cpl_image_collapse_create(const cpl_image *, int)
    CPL_ATTR_ALLOC;
cpl_image * cpl_image_collapse_median_create(const cpl_image *, int,
                                             cpl_size, cpl_size)
    CPL_ATTR_ALLOC;

/* Extraction function */
cpl_image * cpl_image_extract(const cpl_image *, cpl_size, cpl_size,
                              cpl_size, cpl_size) CPL_ATTR_ALLOC;
cpl_vector * cpl_vector_new_from_image_row(const cpl_image *, cpl_size)
    CPL_ATTR_ALLOC;
cpl_vector * cpl_vector_new_from_image_column(const cpl_image *, cpl_size)
    CPL_ATTR_ALLOC;

/* Rotation and Shift */
cpl_error_code cpl_image_turn(cpl_image *, int);
cpl_error_code cpl_image_shift(cpl_image *, cpl_size, cpl_size);

/* Insert an image in an other one */
cpl_error_code cpl_image_copy(cpl_image *, const cpl_image *,
                              cpl_size, cpl_size);

/* Symmetry function */
cpl_error_code cpl_image_flip(cpl_image *, int);

/* Pixels re-organization */
cpl_error_code cpl_image_move(cpl_image *, cpl_size, const cpl_size *);

/* Gaussian fit of an image zone */
cpl_error_code
cpl_image_fit_gaussian(const cpl_image *, cpl_size, cpl_size, cpl_size,
                       double *, double *, double *, double *,
                       double *, double *, double *) CPL_ATTR_DEPRECATED;

/* FWHM computation on a local maximum */
cpl_error_code cpl_image_get_fwhm(const cpl_image *, cpl_size, cpl_size,
                                  double *, double *);

/* FFT computation */
cpl_error_code cpl_image_fft(cpl_image *, cpl_image *, unsigned);

CPL_END_DECLS

#endif