1 /* Copyright (C) 2003-2005 Peter J. Verveer 2 * 3 * Redistribution and use in source and binary forms, with or without 4 * modification, are permitted provided that the following conditions 5 * are met: 6 * 7 * 1. Redistributions of source code must retain the above copyright 8 * notice, this list of conditions and the following disclaimer. 9 * 10 * 2. Redistributions in binary form must reproduce the above 11 * copyright notice, this list of conditions and the following 12 * disclaimer in the documentation and/or other materials provided 13 * with the distribution. 14 * 15 * 3. The name of the author may not be used to endorse or promote 16 * products derived from this software without specific prior 17 * written permission. 18 * 19 * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS 20 * OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED 21 * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 22 * ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY 23 * DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 24 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE 25 * GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS 26 * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, 27 * WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING 28 * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS 29 * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 30 */ 31 32 #ifndef NI_MORPHOLOGY_H 33 #define NI_MORPHOLOGY_H 34 35 int NI_BinaryErosion(PyArrayObject*, PyArrayObject*, PyArrayObject*, 36 PyArrayObject*, int, npy_intp*, int, int, int*, NI_CoordinateList**); 37 int NI_BinaryErosion2(PyArrayObject*, PyArrayObject*, PyArrayObject*, 38 int, npy_intp*, int, NI_CoordinateList**); 39 int NI_DistanceTransformBruteForce(PyArrayObject*, int, PyArrayObject*, 40 PyArrayObject*, PyArrayObject*); 41 int NI_DistanceTransformOnePass(PyArrayObject*, PyArrayObject *, 42 PyArrayObject*); 43 int NI_EuclideanFeatureTransform(PyArrayObject*, PyArrayObject*, 44 PyArrayObject*); 45 46 #endif 47