hole_section_data {bwimage} | R Documentation |
Summary of holes information
Description
Summary information of holes of a given color in a given section. Result unit is the number of cell.
Usage
hole_section_data(section, color = 0)
Arguments
section |
Section to be analysed. |
color |
Color of the hole (0 or 1). |
Value
N |
Number of hole sections |
Mean |
Mean size of hole sections |
SD |
Standard deviation of hole sections size |
Min |
Minimum size of hole sections |
Max |
Maximum size of hole sections |
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
hole_section 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)
# Detail information of white (0) holes sections in the column 200 of bush image
hole_section_data(bush_imagematrix[,200], color = 0)
# Detail information of black (1) holes sections in the row 250 of bush image
hole_section_data(bush_imagematrix[250,], color = 1)
[Package bwimage version 1.3 Index]