.TH i.zc 1grass "" "GRASS 7.8.5" "GRASS GIS User's Manual" .SH NAME \fI\fBi.zc\fR\fR \- Zero\-crossing \(dqedge detection\(dq raster function for image processing. .SH KEYWORDS imagery, edges .SH SYNOPSIS \fBi.zc\fR .br \fBi.zc \-\-help\fR .br \fBi.zc\fR \fBinput\fR=\fIstring\fR \fBoutput\fR=\fIstring\fR [\fBwidth\fR=\fIinteger\fR] [\fBthreshold\fR=\fIfloat\fR] [\fBorientations\fR=\fIinteger\fR] [\-\-\fBoverwrite\fR] [\-\-\fBhelp\fR] [\-\-\fBverbose\fR] [\-\-\fBquiet\fR] [\-\-\fBui\fR] .SS Flags: .IP "\fB\-\-overwrite\fR" 4m .br Allow output files to overwrite existing files .IP "\fB\-\-help\fR" 4m .br Print usage summary .IP "\fB\-\-verbose\fR" 4m .br Verbose module output .IP "\fB\-\-quiet\fR" 4m .br Quiet module output .IP "\fB\-\-ui\fR" 4m .br Force launching GUI dialog .SS Parameters: .IP "\fBinput\fR=\fIstring\fR \fB[required]\fR" 4m .br Name of input raster map .IP "\fBoutput\fR=\fIstring\fR \fB[required]\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: \fI1.0\fR .IP "\fBorientations\fR=\fIinteger\fR" 4m .br Number of azimuth directions categorized .br Default: \fI1\fR .SH DESCRIPTION \fIi.zc\fR is an image processing module used for edge detection. The raster map produced shows the location of \(dqboundaries\(dq 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 \(dqzero\-crossing\(dq algorithms and is discussed briefly below. .SH NOTES The procedure to find the \(dqedges\(dq 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 The \fBwidth=\fR parameter determines the x\-y extent of the Gaussian filter. The default value is \fB9\fR; higher and lower values can be tested by the user. Increasing the width will result in finding \(dqedges\(dq representing more gradual changes in cell values. .PP The \fBthreshold=\fR parameter determines the \(dqsensitivity\(dq of the Gaussian filter. The default value is \fB1\fR; higher and lower values can be tested by the user. Increasing the threshold value will result in fewer edges being found. .PP The \fBorientations=\fR 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 \fIr.slope.aspect\fR. For example, a value of \fB16\fR would result in detected edges being categorized into one of 16 bins depending on the direction of the edge at that point. .PP The current region definition and mask settings are respected when reading the input map. .SH SEE ALSO \fI i.fft, i.ifft, r.mapcalc, r.mfilter, r.slope.aspect \fR .SH AUTHOR David Satnik, GIS Laboratory, Central Washington University .SH SOURCE CODE .PP Available at: i.zc source code (history) .PP Main index | Imagery index | Topics index | Keywords index | Graphical index | Full index .PP © 2003\-2020 GRASS Development Team, GRASS GIS 7.8.5 Reference Manual