12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879 |
- <h2>DESCRIPTION</h2>
- <em>r.thin</em> scans the named <em>input</em> raster map
- layer and thins non-zero cells that denote linear features
- into linear features having a single cell width.
- <p>
- <em>r.thin</em> will thin only the non-zero cells of the
- named <em>input</em> raster map layer within the current
- geographic region settings. The cell width of the thinned
- <em>output</em> raster map layer will be equal to the cell
- resolution of the currently set geographic region. All of
- the thinned linear features will have the width of a single
- cell.
- <p>
- <em>r.thin</em> will create a new <em>output</em> raster
- data file containing the thinned linear features.
- <em>r.thin</em> assumes that linear features are encoded
- with positive values on a background of 0's in the
- <em>input</em> raster data file.
- <h2>NOTE</h2>
- <em>r.thin</em> only creates raster map layers. The user will need to run
- <em><a href="r.to.vect.html">r.to.vect</a></em>
- on the resultant raster map to create a vector
- (<em><a href="wxGUI.Vector_Digitizer.html">wxGUI vector digitizer</a></em>) map layer.
- <p><em>r.thin</em> may create small spurs or "dangling lines"
- during the thinning process. These spurs may be removed
- (after creating a vector map layer) by
- <em><a href="v.clean.html">v.clean</a></em>.
- <p>
- <em>r.thin</em> creates a 0/1 output map.
- <h2>NOTE</h2>
- This code implements the thinning algorithm described in
- "Analysis of Thinning Algorithms Using Mathematical
- Morphology" by Ben-Kwei Jang and Ronlad T. Chin in
- <em>Transactions on Pattern Analysis and Machine
- Intelligence</em>, vol. 12, No. 6, June 1990. The
- definition Jang and Chin give of the thinning process is
- "successive removal of outer layers of pixels from an
- object while retaining any pixels whose removal would alter
- the connectivity or shorten the legs of the sceleton."
- <p>The sceleton is finally thinned when the thinning process
- converges; i.e., "no further pixels can be removed without
- altering the connectivity or shortening the sceleton legs"
- (p. 541). The authors prove that the thinning process
- described always converges and produces one-pixel thick
- sceletons. The number of iterations depends on the
- original thickness of the object. Each iteration peels off
- the outside pixels from the object. Therefore, if the
- object is <= n pixels thick, the algorithm should
- converge in <= iterations.
- <h2>SEE ALSO</h2>
- <em>
- <a href="g.region.html">g.region</a>,
- <a href="r.to.vect.html">r.to.vect</a>,
- <a href="v.clean.html">v.clean</a>,
- <a href="wxGUI.Vector_Digitizer.html">wxGUI vector digitizer</a>,
- <a href="v.build.html">v.build</a>
- </em>
- <h2>AUTHOR</h2>
- Olga Waupotitsch, U.S.Army Construction Engineering Research Laboratory
- <p>The code for finding the bounding box as well as input/output code
- was written by Mike Baba (DBA Systems, 1990) and Jean Ezell (USACERL, 1988).
- <p><i>Last changed: $Date$</i>
|