number_rows_stomata.Rd
Find the number of stomatal rows
number_rows_stomata(cells, stom.val)
A `sf` object containing all cell polygons (i.e. not just the stomatal polygons).
Numeric. The value (colour) of stomata.
A list with components:
Numeric. The number of rows of stomata
Numeric. The y coordinates defining the edge of each row
Numeric. The width of the stomatal band; see Details
Numeric. The number of stomata per row.
Numeric. The number of rows of stomata per unit length (per pixel if unscaled)
This function assumes that the pixels are coloured in the following order
(darkest to lightest): wall, stomate, subsidiary, pavement. To calculate
row.wiggliness
, the major axis of the stomatal row is determined using
principal components, where PC1 is the main axis of the row and PC2 is the vertical
offset of each stomata from this axis. The value row.wiggliness
is the
proportion of variation explained by PC2; a value close to 0 means that
stomata are perfectly aligned; a value close to 0.5 means that stomatal rows
are variable or wiggly in alignment. Values cannot exceed 0.5.
@import stats