Skip to contents

Calculate Root Length using Kimura's Method with optimizations

Usage

root_length(img, unit = "cm", dpi = 300, select.layer = 1)

Arguments

img

A skeletonized root image raster

unit

Output unit ("px" or "cm")

dpi

Image resolution (required when unit = "cm" or "inch")

select.layer

Integer. Specifies which layer to use if the input is a multi-band image. Default is `2`.

Value

Numeric value representing root length in specified unit

Examples

data(skl_Oulanka2023_Session01_T067)
img = terra::rast(skl_Oulanka2023_Session01_T067)
RL = root_length(img = img,unit = "cm", dpi = 300, select.layer = 2)