/usr/include/CGAL/ImageIO/recbuffer.h is in libcgal-dev 4.11-2build1.
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 190 191 192 193 194 195 196 197 198 199 200 201 202 203 | // Copyright (c) 2005-2008 ASCLEPIOS Project, INRIA Sophia-Antipolis (France)
// All rights reserved.
//
// This file is part of the ImageIO Library, and as been adapted for
// CGAL (www.cgal.org).
// You can redistribute it and/or modify it under the terms of the
// GNU Lesser General Public License as published by the Free Software Foundation;
// either version 3 of the License, or (at your option) any later version.
//
// Licensees holding a valid commercial license may use this file in
// accordance with the commercial license agreement provided with the software.
//
// These files are provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE
// WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
//
// $URL$
// $Id$
//
//
// Author(s) : ASCLEPIOS Project (INRIA Sophia-Antipolis), Laurent Rineau
/*************************************************************************
* recbuffer.h - tools for recursive filtering of 3D and 2D image buffers
*
* $Id$
*
* Copyright©INRIA 1999
*
* DESCRIPTION:
*
*
*
* AUTHOR:
* Gregoire Malandain (greg@sophia.inria.fr)
* http://www.inria.fr/epidaure/personnel/malandain/
*
* CREATION DATE:
* June, 9 1998
*
* Copyright Gregoire Malandain, INRIA
*
* ADDITIONS, CHANGES
*
*
*/
#ifndef _recbuffer_h_
#define _recbuffer_h_
#include <CGAL/ImageIO/typedefs.h>
#include <CGAL/ImageIO/recline.h>
extern int GradientModulus( void *bufferIn, bufferType typeIn,
void *bufferOut, bufferType typeOut,
int *bufferDims, int *borderLengths,
float *filterCoefs, recursiveFilterType filterType );
extern int Laplacian_2D( void *bufferIn, bufferType typeIn,
void *bufferOut, bufferType typeOut,
int *bufferDims, int *borderLengths,
float *filterCoefs, recursiveFilterType filterType );
extern int Laplacian( void *bufferIn, bufferType typeIn,
void *bufferOut, bufferType typeOut,
int *bufferDims, int *borderLengths,
float *filterCoefs, recursiveFilterType filterType );
extern int GradientHessianGradient_2D( void *bufferIn, bufferType typeIn,
void *bufferOut, bufferType typeOut,
int *bufferDims, int *borderLengths,
float *filterCoefs, recursiveFilterType filterType );
extern int GradientHessianGradient( void *bufferIn, bufferType typeIn,
void *bufferOut, bufferType typeOut,
int *bufferDims, int *borderLengths,
float *filterCoefs, recursiveFilterType filterType );
/* Recursive filtering on 3D buffers.
*
* DESCRIPTION:
* Performs recursive filtering on 3D buffers.
* Each direction (X, Y or Z) is performed
* independently (separability).
*
* A direction is filtered if there are enough
* points along this direction (at least 5),
* if the coefficient along this direction is
* positive, and if the derivative's order along
* this direction is not NODERIVATIVE (see
* derivativeOrder).
*
* Once a line along a direction is extracted for
* filtering, one may want to add points at both
* ends of the line to avoid cut-off effects. The
* value of each endpoint is repeated n times.
* Thus the length of the line is increased by
* 2*n.
*
* PARAMETERS:
*
* - bufferDims[0] is the dimension along X,
*
* bufferDims[1] is the dimension along Y,
*
* bufferDims[2] is the dimension along Y.
*
* - borderLengths[0] is the number of points to be
* added at both ends of each X line (if
* positive). The value of each endpoint is
* repeated borderLengths[0] times to produce
* a line of length
* bufferDims[0] + 2 * borderLengths[0].
*
* borderLengths[1] is the number of points to be
* added at both ends of each Y line.
*
* borderLengths[2] is the number of points to be
* added at both ends of each Z line.
*
* - derivatives[0] is the order of the derivative
* to be computed along direction X.
*
* derivatives[1] is the order of the derivative
* to be computed along direction Y.
*
* derivatives[2] is the order of the derivative
* to be computed along direction Z.
*
* - filterCoefs[0] is the coefficient of the filter
* to be applied along direction X.
*
* filterCoefs[1] is the coefficient of the filter
* to be applied along direction Y.
*
* filterCoefs[2] is the coefficient of the filter
* to be applied along direction Z.
*
* - filterType is the type of recursive filter to
* be applied to the 3D buffer.
*
* RETURN:
*
* - 0 in case of error
*
* - 1 if successful
*
* SEE ALSO:
*
* - bufferType.
*
* - derivativeOrder.
*
* - recursiveFilterType.
*
* - InitRecursiveCoefficients
*/
extern int RecursiveFilterOnBuffer( void *bufferIn, /* input buffer */
bufferType typeIn, /* type of the input buffer */
void *bufferOut, /* output buffer */
bufferType typeOut, /* type of the output buffer */
int *bufferDims, /* buffers' dimensions */
int *borderLengths, /* number of points to be added at both ends */
derivativeOrder *derivatives, /* order of derivatives to be computed */
float *filterCoefs, /* coefficients of the filters to be applied */
recursiveFilterType filterType /* type of the recursive filter to be applied */
);
/* Turn on verbose mode.
*
* DESCRIPTION:
* Some information will be written on stderr when processing.
* It will turn on the verbose mode of recline too, by
* calling Recline_verbose();
*/
extern void Recbuffer_verbose ( );
/* Turn off verbose mode.
*
* DESCRIPTION:
* Nothing will be written on stderr when processing.
* Exactly the contrary of Recbuffer_verbose ().
* It will turn off the verbose mode of recline too.
*/
extern void Recbuffer_noverbose ( );
#ifdef CGAL_HEADER_ONLY
#include <CGAL/ImageIO/recbuffer_impl.h>
#endif // CGAL_HEADER_ONLY
#endif /* _recbuffer_h_ */
|