Description Usage Arguments Value Author(s) References See Also Examples
View source: R/ImageAnalysis.R
Break the original matrix in a number of section ( n_sections), then find the higher black pixel in each image section.
1 | altitudinal_profile(imagematrix, n_sections, height_size)
|
imagematrix |
The matrix to be analysed. |
n_sections |
Break the image in this number of columns. |
height_size |
Real size of image height (in mm, cm, m, etc..). |
Mean |
Height mean of the highest black pixel in sections. |
SD |
Standard deviations of the highest black pixel in sections. |
Size |
Height of the highest black pixel in sections. |
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
1 2 3 4 5 6 7 8 9 | # 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)
# Profile of highest black pixels on sections of the bush image matrix
altitudinal_profile(bush_imagematrix,n_sections = 10, height_size=100)
# Conclusions:
# i) the mean height of the highest black pixel is 45.28 cm.
# ii) standard deviation of highest black height is 21.54.
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.