Skip to contents

Smooth the edges of a root binary image

Usage

smooth_root_edges(img, kernel_shape = "disk", kernel_size = 3, iterations = 1)

Arguments

img

A binary image of root systems (imager cimg object)

kernel_shape

Shape of the kernel: "square", "diamond", or "disk"

kernel_size

Size of the kernel for morphological operations (odd integer). Use larger kernels for higher image resolution

iterations

Number of iterations for the smoothing process

Value

A smoothed binary image

Examples