Transforms pixel values to SI units (e.g. '7.5mm2', '20um2')

transform_pixel_to_area_si(input, unit, object, round = FALSE)

Arguments

input

Area as pixel input. See details for more information.

unit

The SI area unit. Use validUnitsOfAreaSI() to obtain all valid input options.

object

An object of class spata2.

round

Numeric value or FALSE. If numeric, given to digits of base::round(). Rounds transformed values before they are returned.

Value

Transformed input. Vector of the same length as input and of class units.