segRaster: segRaster

Description Usage Arguments Details Value See Also Examples

View source: R/segRaster.R

Description

Connected-region based raster segmentation that preserves spatial gradients.

Usage

1
segRaster(x, break.point = 0.1, min.value = 0.5)

Arguments

x

Object of class RasterLayer.

break.point

Difference threshold. Default is 0.05.

min.value

Minimum value. Default is 0.5.

Details

The function segments x using a connected component region labeling approach. For each pixel, the function estimates the difference between it and its immediate neighbors. The pixels where the difference is below break.point are aggregated into a single region. Moreover, the user can define a minimum pixel value using min.value which will ignore all pixels below it. The output of this function consists of:

Value

A list object.

See Also

predictResources

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
## Not run: 

 require(raster)

 # load example probability image
 file <- system.file('extdata', 'probabilities.tif', package="rsMove")
 r <- raster(file)

 # segment probabilities
 rs <- segRaster(r)


## End(Not run)

RRemelgado/rsMove documentation built on June 7, 2020, 5:12 p.m.