heigh_propotion_test: Cumulative denseness test

Description Usage Arguments Author(s) References See Also Examples

View source: R/ImageAnalysis.R

Description

Find the height which a given proportion of black pixel is found.

Usage

1
heigh_propotion_test(imagematrix, proportion, height_size)

Arguments

imagematrix

The matrix to be analysed.

proportion

Proportion of denseness to test.

height_size

Real size of image height (in mm, cm, m, etc..).

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

1
2
3
4
5
6
7
# 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
heigh_propotion_test(bush_imagematrix,0.75,100)
# Conclusion: in this imagem, 75 percent of the vegetation is hold below 31.2 cm.

bwimage documentation built on April 23, 2020, 1:06 a.m.