light_gap {bwimage} | R Documentation |
Light gap
Description
Left and right distances from first black pixel to image edge.
Usage
light_gap(imagematrix, width_size = NA, scale = TRUE)
Arguments
imagematrix |
The matrix to be analysed |
width_size |
Real size of image width (in mm, cm, m, etc..). |
scale |
If FALSE do not ajust the output for real size. |
Value
Distances without black pixel in each side of the picture
Author(s)
Carlos Biagolini-Jr.
References
Zehm et al 2003 Multiparameter analysis of vertical vegetation structure based on digital image processing. Flora-Morphology, Distribution, Functional Ecology of Plants, 198: 142-160.
See Also
threshold_color
Examples
# First, get a matrix from your image. Here an example of a bush image is used.
bush<-system.file("extdata/bush.JPG",package ="bwimage")
bush_imagematrix<-threshold_color(bush, "jpeg", "proportional", compress_rate = 0.1)
# Calculate vegetation Light gap in the bush image matrix
light_gap(bush_imagematrix,width_size=100)
# Conclusion: there is no light gap on both sides of bush image.
[Package bwimage version 1.3 Index]