shape.export: Turn the output from shape.all into a matrix of median trait...

View source: R/export.R

shape.exportR Documentation

Turn the output from shape.all into a matrix of median trait values

Description

Turn the output from shape.all into a matrix of median trait values

Usage

shape.export(shape_dat, remove_tag = TRUE, roundness_thresh = 0.7)

Arguments

shape_dat

Output from shape.all function

remove_tag

If TRUE, objects below the 'roundness_thresh' will be removed from the data before taking median values

roundness_thresh

The minimum roundness for an object to not be removed from the output, default is 0.7

Value

A matrix of the median values of BB width, BB length, perimeter, convex perimeter, area, convex hull area, compactness, roundness, and maximum length values for each image.

Examples

  load(system.file("example_data", "shape_exmp.rds", package = "TubAR"))
  shape.export(shape_exmp,remove_tag=TRUE, roundness_thresh=0.7)

shannonlabumn/TubAR documentation built on Aug. 14, 2022, 10:48 a.m.