This file is indexed.

/usr/include/cpl_stats.h is in libcpl-dev 6.6.1-1build1.

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
/* $Id: cpl_stats.h,v 1.17 2012-07-30 23:39:10 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: 2012-07-30 23:39:10 $
 * $Revision: 1.17 $
 * $Name: not supported by cvs2svn $
 */

#ifndef CPL_STATS_H
#define CPL_STATS_H

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

#ifdef HAVE_CONFIG_H
#include <config.h>
#endif

#include "cpl_image.h"

#include <stdio.h>


CPL_BEGIN_DECLS

/*-----------------------------------------------------------------------------
                                   New types
 -----------------------------------------------------------------------------*/

/**
 * @ingroup cpl_stats
 *
 * @brief The values of the CPL stats mode.
 * The values can be combined with bitwise or.
 */

enum _cpl_stats_mode_ {

/* No mode has the value 1, which makes the (mis)use of logical or detectable */

    /**
     * The minimum
     * @hideinitializer
     */
    CPL_STATS_MIN        =  1 << 1,
    /**
     * The maximum
     * @hideinitializer
     */
    CPL_STATS_MAX        =  1 <<  2,
    /**
     * The mean
     * @hideinitializer
     */
    CPL_STATS_MEAN       =  1 <<  3,
    /**
     * The median
     * @hideinitializer
     */
    CPL_STATS_MEDIAN     =  1 <<  4,
    /**
     * The standard deviation
     * @hideinitializer
     */
    CPL_STATS_STDEV      =  1 <<  5,
    /**
     * The flux
     * @hideinitializer
     */
    CPL_STATS_FLUX       =  1 <<  6,
    /**
     * The absolute flux
     * @hideinitializer
     */
    CPL_STATS_ABSFLUX    =  1 <<  7,
    /**
     * The square flux
     * @hideinitializer
     */
    CPL_STATS_SQFLUX     =  1 <<  8,
    /**
     * The position of the minimum
     * @hideinitializer
     */
    CPL_STATS_MINPOS     =  1 <<  9,
    /**
     * The position of the maximum
     * @hideinitializer
     */
    CPL_STATS_MAXPOS     =  1 << 10,
    /**
     * The centroid position
     * @hideinitializer
     */
    CPL_STATS_CENTROID   =  1 << 11,
    /**
     * The mean of the absolute median deviation
     * @hideinitializer
     */
    CPL_STATS_MEDIAN_DEV =  1 << 12,
    /**
     * The median of the absolute median deviation
     * @hideinitializer
     */
    CPL_STATS_MAD =  1 << 13,
    /**
     * All of the above
     * @hideinitializer
     */
    CPL_STATS_ALL        = (1 << 14)-2
};


/**
 * @ingroup cpl_stats
 *
 * @brief
 *   The CPL stats mode. It is a bit field.
 */
typedef enum _cpl_stats_mode_ cpl_stats_mode;

/**
 * @ingroup cpl_stats
 * @brief The opaque CPL stats data type.
 */
typedef struct _cpl_stats_ cpl_stats;

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

/* Accessor functions */
double cpl_stats_get_min(const cpl_stats *);
double cpl_stats_get_max(const cpl_stats *);
double cpl_stats_get_mean(const cpl_stats *);
double cpl_stats_get_median(const cpl_stats *);
double cpl_stats_get_median_dev(const cpl_stats *);
double cpl_stats_get_mad(const cpl_stats *);
double cpl_stats_get_stdev(const cpl_stats *);
double cpl_stats_get_flux(const cpl_stats *);
double cpl_stats_get_absflux(const cpl_stats *);
double cpl_stats_get_sqflux(const cpl_stats *);
double cpl_stats_get_centroid_x(const cpl_stats *);
double cpl_stats_get_centroid_y(const cpl_stats *);
cpl_size cpl_stats_get_min_x(const cpl_stats *);
cpl_size cpl_stats_get_min_y(const cpl_stats *);
cpl_size cpl_stats_get_max_x(const cpl_stats *);
cpl_size cpl_stats_get_max_y(const cpl_stats *);
cpl_size cpl_stats_get_npix(const cpl_stats *);

void cpl_stats_delete(cpl_stats *);

/* Statistics computations */
cpl_stats * cpl_stats_new_from_image(const cpl_image *,
                                     cpl_stats_mode) CPL_ATTR_ALLOC;
cpl_stats * cpl_stats_new_from_image_window(const cpl_image *, cpl_stats_mode,
                                            cpl_size, cpl_size, cpl_size,
                                            cpl_size) CPL_ATTR_ALLOC;
cpl_error_code cpl_stats_dump(const cpl_stats *, cpl_stats_mode, FILE *);

CPL_END_DECLS

#endif