find.shape: Measures the BB width, BB length, perimeter, convex...

View source: R/shape_func.R

find.shapeR Documentation

Measures the BB width, BB length, perimeter, convex perimeter, area, convex hull area, compactness, roundness, and maximum length values for each object in the image.

Description

Measures the BB width, BB length, perimeter, convex perimeter, area, convex hull area, compactness, roundness, and maximum length values for each object in the image.

Usage

find.shape(image, pix.min = 4000, scaledown = 4, colorcard = "bottomright")

Arguments

image

The image to be processed, must be a JPEG

pix.min

is number of pixels expected for the smallest object to be designated a tuber

scaledown

by which image is divided for faster computing (a reduction in image size)

colorcard

= NULL/"bottomright" to remove a color card if used

Value

A nested list with the BB width, BB length, perimeter, convex perimeter, area, convex hull area, compactness, roundness, and maximum length values for each object.

Examples

  find.shape(system.file("images", "2020fy2_317.jpg", package = "TubAR"))
  find.shape(system.file("images", "2020fy2_317.jpg", package = "TubAR"), pix.min=4e4, scaledown=5, colorcard="bottomright")

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