Description Usage Arguments Details Value See Also Examples
Connected-region based raster segmentation that preserves spatial gradients.
1 | segRaster(x, break.point = 0.1, min.value = 0.5)
|
x |
Object of class RasterLayer. |
break.point |
Difference threshold. Default is 0.05. |
min.value |
Minimum value. Default is 0.5. |
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:
regions - Region raster image.
stats - Basic statistics for each pixel region.
A list object.
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)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.