GRASS Programmer's Manual
6.5.svn(2014)r66266

Zero Crossing functions. More...
#include <stdio.h>
#include <math.h>
Go to the source code of this file.
Macros  
#define  TINY 1.0e3 
Functions  
int  G_math_findzc (double conv[], int size, double zc[], double thresh, int num_orients) 
Finds locations and orientations of zero crossings. More...  
Zero Crossing functions.
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 021101301 USA
Definition in file findzc.c.
#define TINY 1.0e3 
Definition at line 32 of file findzc.c.
Referenced by G_math_findzc().
Finds locations and orientations of zero crossings.
Finds the locations and orientations of zero crossings in the input array conv, which is the result of the convolution of the MarrHildreth operator with the image. The output array is zc, which is nonzero only at zero crossing pixels. At those pixels, the value is 1 + (orientation), where orientation is a value from 0 to num_orients.
[in]  conv  input 
[in]  size  size of largest matrix column or row 
[out]  zc  output 
[in]  thresh  magnitude threshold 
[in]  num_orients 
Definition at line 56 of file findzc.c.
References tools::size, and TINY.