getNumberOfPixels: Get the number of pixels per segment

Description Usage Arguments Details Value References Examples

Description

Get the number of pixels per segment given a PolarSegmentation.

Usage

1
2
3
4
getNumberOfPixels(x, m, onlyMin = TRUE)

## S4 method for signature 'PolarSegmentation'
getNumberOfPixels(x, m, onlyMin = TRUE)

Arguments

x

PolarSegmentation

m

PolarSegmentation. Mask.

onlyMin

logical. The default TRUE meant that only the number of pixels of the smallest segment is returned.

Details

A criterion for selecting a proper segmentation is the number of pixel of the smallest segment. Gonsamo et al. (2010) suggest a minimum number of pixels greater or equal than 10 pixels.

Value

numeric

References

Gonsamo, A., Walter, J.-M.N., Pellikka, P., 2010. Sampling gap fraction and size for estimating leaf area and clumping indices from hemispherical photographs. Can. J. For. Res. 40, 1588–1603. doi:10.1139/X10-085

Examples

1
#/inst/examples/ Example.R

GastonMauroDiaz/caiman documentation built on Jan. 22, 2022, 4:43 a.m.