skin.all: Perform 'find.skin' for all JPEG files in the working...

View source: R/skin_func.R

skin.allR Documentation

Perform 'find.skin' for all JPEG files in the working directory.

Description

Perform 'find.skin' for all JPEG files in the working directory.

Usage

skin.all(
  n.core = 1,
  display = T,
  mode = "debug",
  write.clean = F,
  pix.min = 4000,
  scaledown = 4,
  colorcard = "bottomright",
  color.correct = T
)

Arguments

n.core

The number of processor cores to use in processing. Default is 1.

display

If TRUE, a black and white image of each object will be created for each image

mode

If set to “debug” the display will show numbered objects and skinned area on the objects.

write.clean

If TRUE, a JPEG image with backgroung removed will be created for each input image

pix.min

The minimum pixel size required for objects to not be removed with the background,

scaledown

The amount image sizes will be reduced in order to aid processing speed

colorcard

Declares which corner the color card is in. "bottomright" by default. Can also be set to "bottomleft", "topright", and "topleft"

color.correct

Determines if pixel values will be color corrected based on the color card. TRUE by default.

Value

A nested list of median values for each image of rednees, skinning, and lightness and the values forthese traits for every object in every image.

Examples

  setwd(system.file("images", package = "TubAR"))
  skin.all(n.core=1, display=T, mode="debug", write.clean=F, pix.min=4e3, scaledown=4, colorcard="bottomright")

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