.TH i.zc 1grass "" "GRASS 6.4.4" "Grass User's Manual" .SH NAME \fI\fBi.zc\fR\fR - Zero-crossing "edge detection" raster function for image processing. .SH KEYWORDS imagery, edges .SH SYNOPSIS \fBi.zc\fR .br \fBi.zc help\fR .br \fBi.zc input\fR=\fIstring\fR \fBoutput\fR=\fIstring\fR [\fBwidth\fR=\fIinteger\fR] [\fBthreshold\fR=\fIfloat\fR] [\fBorientations\fR=\fIinteger\fR] [\-\-\fBoverwrite\fR] [\-\-\fBverbose\fR] [\-\-\fBquiet\fR] .SS Flags: .IP "\fB\-\-overwrite\fR" 4m .br Allow output files to overwrite existing files .IP "\fB\-\-verbose\fR" 4m .br Verbose module output .IP "\fB\-\-quiet\fR" 4m .br Quiet module output .PP .SS Parameters: .IP "\fBinput\fR=\fIstring\fR" 4m .br Name of input raster map .IP "\fBoutput\fR=\fIstring\fR" 4m .br Zero crossing raster map .IP "\fBwidth\fR=\fIinteger\fR" 4m .br x-y extent of the Gaussian filter .br Default: \fI9\fR .IP "\fBthreshold\fR=\fIfloat\fR" 4m .br Sensitivity of Gaussian filter .br Default: \fI10\fR .IP "\fBorientations\fR=\fIinteger\fR" 4m .br Number of azimuth directions categorized .br Default: \fI1\fR .PP .SH DESCRIPTION \fIi.zc\fR is an image processing program used for edge detection. The raster map produced shows the location of \(dqboundaries" on the input map. Boundaries tend to be found in regions of changing cell values and tend to run perpendicular to the direction of the slope. The algorithm used for edge detection is one of the "zero-crossing" algorithms and is discussed briefly below. .SH OPTIONS .SS Parameters: .IP "\fBinput_map=\fR\fIname\fR .br Name of input raster map layer. .IP "\fBzc_map=\fR\fIname\fR .br Name of raster map layer to be used for zero-crossing values. .IP "\fBwidth=\fR\fIvalue\fR .br This parameter determines the x-y extent of the Gaussian filter. The default value is 9; higher and lower values can be tested by the user. Increasing the width will result in finding "edges" representing more gradual changes in cell values. .br Default: 9 .IP "\fBthreshold=\fR\fIvalue\fR .br This parameter determines the "sensitivity" of the Gaussian filter. The default value is 10; higher and lower values can be tested by the user. Increasing the threshold value will result in fewer edges being found. .br Default: 10 .IP "\fBorientations=\fR\fIvalue\fR .br This value is the number of azimuth directions the cells on the output raster map layer are categorized into (similar to the aspect raster map layer produced by the \fIr.slope.aspect\fR program). For example, a value of 16 would result in detected edges being categorized into one of 16 bins depending on the direction of the edge at that point. .br Default: 1 .PP The current region definition and mask settings are respected when reading the input map. .SH NOTES The procedure to find the "edges" in the image is as follows: ..IP .IP \fB1\fR The Fourier transform of the image is taken, .IP \fB2\fR The Fourier transform of the Laplacian of a two-dimensional Gaussian function is used to filter the transformed image, .IP \fB3\fR The result is run through an inverse Fourier transform, .IP \fB4\fR The resulting image is traversed in search of places where the image changes from positive to negative or from negative to positive, .IP \fB5\fR Each cell in the map where the value crosses zero (with a change in value greater than the threshold value) is marked as an edge and an orientation is assigned to it. The resulting raster map layer is output. .PP .SH SEE ALSO \fIi.fft\fR, \fIi.ifft\fR, \fIr.mapcalc\fR, \fIr.mfilter\fR, \fIr.slope.aspect\fR .SH AUTHOR David Satnik, GIS Laboratory, Central Washington University .PP \fILast changed: $Date: 2011-11-08 12:29:50 +0100 (Tue, 08 Nov 2011) $\fR .PP Full index .PP © 2003-2014 GRASS Development Team