/usr/include/gwyddion/libprocess/grains.h is in libgwyddion20-dev 2.44-1.
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 | /*
* @(#) $Id: grains.h 17628 2015-10-21 09:51:21Z yeti-dn $
* Copyright (C) 2003-2015 David Necas (Yeti), Petr Klapetek.
* E-mail: yeti@gwyddion.net, klapetek@gwyddion.net.
*
* 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 Street, Fifth Floor,
* Boston, MA 02110-1301, USA.
*/
#ifndef __GWY_PROCESS_GRAINS_H__
#define __GWY_PROCESS_GRAINS_H__
#include <libprocess/datafield.h>
#include <libprocess/gwyprocesstypes.h>
G_BEGIN_DECLS
void gwy_data_field_grains_mark_curvature(GwyDataField *data_field,
GwyDataField *grain_field,
gdouble threshval,
gboolean below);
void gwy_data_field_grains_mark_watershed(GwyDataField *data_field,
GwyDataField *grain_field,
gint locate_steps,
gint locate_thresh,
gdouble locate_dropsize,
gint wshed_steps,
gdouble wshed_dropsize,
gboolean prefilter,
gboolean below);
gboolean gwy_data_field_grains_remove_grain(GwyDataField *grain_field,
gint col,
gint row);
gboolean gwy_data_field_grains_extract_grain(GwyDataField *grain_field,
gint col,
gint row);
void gwy_data_field_grains_remove_by_number(GwyDataField *grain_field,
gint number);
void gwy_data_field_grains_remove_by_size(GwyDataField *grain_field,
gint size);
void gwy_data_field_grains_remove_by_height(GwyDataField *data_field,
GwyDataField *grain_field,
gdouble threshval,
gboolean below);
void gwy_data_field_grains_remove_touching_border(GwyDataField *grain_field);
GwyComputationState* gwy_data_field_grains_watershed_init(GwyDataField *data_field,
GwyDataField *grain_field,
gint locate_steps,
gint locate_thresh,
gdouble locate_dropsize,
gint wshed_steps,
gdouble wshed_dropsize,
gboolean prefilter,
gboolean below);
void gwy_data_field_grains_watershed_iteration(GwyComputationState *state);
void gwy_data_field_grains_watershed_finalize(GwyComputationState *state);
void gwy_data_field_grains_mark_height(GwyDataField *data_field,
GwyDataField *grain_field,
gdouble threshval,
gboolean below);
void gwy_data_field_grains_mark_slope(GwyDataField *data_field,
GwyDataField *grain_field,
gdouble threshval,
gboolean below);
gdouble gwy_data_field_otsu_threshold(GwyDataField *data_field);
void gwy_data_field_grains_add (GwyDataField *grain_field,
GwyDataField *add_field);
void gwy_data_field_grains_intersect(GwyDataField *grain_field,
GwyDataField *intersect_field);
void gwy_data_field_grains_invert (GwyDataField *grain_field);
gboolean gwy_data_field_grains_autocrop (GwyDataField *mask_field,
gboolean symmetrically,
guint *left,
guint *right,
guint *up,
guint *down);
gint gwy_data_field_number_grains(GwyDataField *mask_field,
gint *grains);
gint gwy_data_field_number_grains_periodic(GwyDataField *mask_field,
gint *grains);
gint* gwy_data_field_get_grain_bounding_boxes(GwyDataField *mask_field,
gint ngrains,
const gint *grains,
gint *bboxes);
GwyDataLine* gwy_data_field_grains_get_distribution(GwyDataField *data_field,
GwyDataField *grain_field,
GwyDataLine *distribution,
gint ngrains,
const gint *grains,
GwyGrainQuantity quantity,
gint nstats);
gdouble* gwy_data_field_grains_get_values (GwyDataField *data_field,
gdouble *values,
gint ngrains,
const gint *grains,
GwyGrainQuantity quantity);
gdouble** gwy_data_field_grains_get_quantities (GwyDataField *data_field,
gdouble **values,
const GwyGrainQuantity *quantities,
guint nquantities,
guint ngrains,
const gint *grains);
gboolean gwy_grain_quantity_needs_same_units (GwyGrainQuantity quantity);
GwySIUnit* gwy_grain_quantity_get_units (GwyGrainQuantity quantity,
GwySIUnit *siunitxy,
GwySIUnit *siunitz,
GwySIUnit *result);
void gwy_data_field_area_grains_tgnd(GwyDataField *data_field,
GwyDataLine *target_line,
gint col,
gint row,
gint width,
gint height,
gboolean below,
gint nstats);
void gwy_data_field_area_grains_tgnd_range(GwyDataField *data_field,
GwyDataLine *target_line,
gint col, gint row,
gint width, gint height,
gdouble min, gdouble max,
gboolean below,
gint nstats);
void gwy_data_field_grains_splash_water(GwyDataField *data_field,
GwyDataField *minima,
gint locate_steps,
gdouble locate_dropsize);
void gwy_data_field_grain_distance_transform(GwyDataField *data_field);
void gwy_data_field_grain_simple_dist_trans (GwyDataField *data_field,
GwyDistanceTransformType dtype,
gboolean from_border);
void gwy_data_field_grains_shrink (GwyDataField *data_field,
gdouble amount,
GwyDistanceTransformType dtype,
gboolean from_border);
void gwy_data_field_grains_grow (GwyDataField *data_field,
gdouble amount,
GwyDistanceTransformType dtype,
gboolean prevent_merging);
gboolean gwy_data_field_fill_voids (GwyDataField *data_field,
gboolean nonsimple);
gint gwy_data_field_waterpour (GwyDataField *data_field,
GwyDataField *result,
gint *grains);
void gwy_data_field_mark_extrema (GwyDataField *dfield,
GwyDataField *extrema,
gboolean maxima);
G_END_DECLS
#endif /* __GWY_PROCESS_GRAINS__ */
/* vim: set cin et ts=4 sw=4 cino=>1s,e0,n0,f0,{0,}0,^0,\:1s,=0,g1s,h0,t0,+1s,c3,(0,u0 : */
|