heigh_maximum: Height of the highest black pixel in the image

Description Usage Arguments Value Author(s) References See Also Examples

View source: R/ImageAnalysis.R

Description

Find the higher black pixel in the whole image.

Usage

1
heigh_maximum(imagematrix, height_size)

Arguments

imagematrix

The matrix to be analysed.

height_size

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

Value

Height of the highest black pixel. It is scaleted for the real size (in mm, cm, m, etc..) based in the information from argument height_size.

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)

# Calculate height of the highest black pixel in the bush image matrix
heigh_maximum(bush_imagematrix,height_size=100)
# Conclusions: The highest vegetation unit ,i.e. highest black pixel, is 84.4 cm above ground.

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