itc.wat.h: Hierarchical Watershed Segmentation Individual Tree Crown...

Description Usage Arguments Value Author(s) References Examples

View source: R/itc.wat.h.R

Description

This function detects individual tree crowns using hierarchical watershed segmentation

Usage

1
2
3
itc.wat.h(chm.stack = NA, res = 1, ht2rad = NA, min.h = 1,
  tolerance = 0.1, fun = max, num = TRUE, stacked = FALSE,
  silent = FALSE, ws.plot = FALSE)

Arguments

chm.stack

Name of the CHM raster stack object output from a chm function with stacked=TRUE. Defaults to NA.

res

Resolution of the input canopy height model in meters, used to adjust the ht2rad function. Defaults to 1.

ht2rad

Function used to convert tree height to crown radius. Defaults to NA.

min.h

Canopy minimum height. Defaults to 1.

tolerance

The minimum height between an object's highest point and the point where it contacts another object. If the height is smaller than the tolerance, the object will be combined with its highest neighbor. Defaults to 0.1.

fun

Function used to combine rasters of tree crown position. Defaults to max.

num

Boolean switch for the output of numeric values instead of a raster object. Defaults to TRUE.

stacked

Boolean switch for the output of a raster stack. Defaults to FALSE.

silent

Boolean switch for the interactive display of plots. Defaults to FALSE.

ws.plot

Boolean switch for the display of the watershed segmentation plot. Defaults to FALSE.

Value

The results of itc.wat.h

Author(s)

Adam Erickson, adam.erickson@ubc.ca

References

http://www.mdpi.com/2072-4292/4/4/950/htm

Examples

1
2
itc.wat.h(chm.stack=chms, res=1, ht2rad=function(x) 0.15746*x/res, min.h=1, tolerance=0.1, fun=max, num=TRUE, stacked=FALSE, silent=FALSE, ws.plot=FALSE)
itc.wat.h(chm.stack=chms, res=1, ht2rad=function(x) 0.15746*x/res, min.h=1, tolerance=0.1, fun=length, num=TRUE, stacked=FALSE, silent=FALSE, ws.plot=FALSE)

adam-erickson/gapfraction documentation built on May 5, 2019, 6:57 p.m.