topline {bwimage} | R Documentation |
Line running along the crest of highest black pixel.
topline(imagematrix, height_size = NA, width_size = NA)
imagematrix |
The matrix to be analysed. |
height_size |
Real size of image height (in mm, cm, m, etc..). |
width_size |
Real size of image width (in mm, cm, m, etc..). |
Top line size that cover black pixels
Carlos Biagolini-Jr.
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.
threshold_color
# 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)
# See the proportion of black pixels (1) below each bush image matrix row
topline(bush_imagematrix,100,100)
# Conclusion: topline size is 785.6 cm.