convert pixel counts to an area based on the known area of an identifier-dot.
Source:R/convert_pixels_to_area_gui.R
convert_pixels_to_area_gui.Rd
convert pixel counts to an area based on the known area of an identifier-dot.
Arguments
- pixel.counts
list containing any of the following pixel-counts:
"bex_green_HSV"
"bex_drought_HSV"
"bex_complete_HSV"
"bex_identifier_HSV"
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 forduflor.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- identifier_area
declared size of the identifier area, in
[cm^2]
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]
Note
This is a restructured version of duflor::convert_pixels_to_area, to be more suitable to the needs of this specific app.