clumps_dist: Find distances between 3D aggregates/clumps

View source: R/clumps_dist.R

clumps_distR Documentation

Find distances between 3D aggregates/clumps

Description

With two outputs from the clumps function compute the distances between pairs of aggregates. Computes the distances between aggregates in clumps.x with those in clumps.y. If you want distances between aggregates from one output, just input the data.frame in clumps.x. Provide pwidth and zstep to get the distance in microns. Alternatively it's the pixel distance

Usage

clumps_dist(clumps.x, clumps.y = clumps.x, pwidth = 1, zstep = 1, cores = 1)

Arguments

clumps.x

Data.frame output from the clumps function (...$Aggregates)

clumps.y

Optional. Data.frame output from the clumps function (...$Aggregates)

pwidth

Width of pixels in microns

zstep

z-step in microns

cores

Number of cores to use for parallel computing

Value

A dataframe with the distances


Russel88/RCon3D documentation built on Dec. 14, 2022, 11:06 p.m.