Skip to contents

convert pixel counts to an area based on the known area of an identifier-dot.

Usage

convert_pixels_to_area(pixel.counts)

Arguments

pixel.counts

list containing any of the following pixel-counts:

  • "green"

  • "drought"

  • "complete"

  • "identifier"

The pixel-count for identifier must be present, whereas the others are optional. The calculated area is internally unit-less. However, as the default value for duflor.default_identifier_area is 0.503 [cm^2], the areas computed by this function is also in [cm^2].

The assumed area of the identifier can be modified by excuting options(duflor.default_identifier_area = <value_in_square_centimeters>) prior to calling this function

Value

list of computed areas for any key listed in pixel.counts. Additionally, two meta-values are returned as well:

  • the identifier-area used for calculating each area (whichever value is set in option duflor.default_identifier_area)

  • the area of a singe pixel

All values are in [cm^2]