counter: Hue processing function

View source: R/counter.R

counterR Documentation

Hue processing function

Description

This is a function to check hue values. It runs the workflow outlined in the Field Methods paper.

Usage

counter(
  slice,
  lower_hue_threshold,
  upper_hue_threshold,
  lower_saturation_threshold = 0.05,
  lower_luminance_threshold = 0.05,
  upper_luminance_threshold = 0.95,
  border_size = 0.25,
  iso_blur = 2
)

Arguments

slice

A subimage of a single target/recipient photograph.

lower_hue_threshold

Lower hue threshold for the token color.

upper_hue_threshold

Upper for the token color.

lower_saturation_threshold

Lower limit of greyness before the hue of such pixels is excluded from density calculations.

lower_luminance_threshold

Lower limit of darkness before the hue of such pixels is excluded from density calculations.

upper_luminance_threshold

Upper limit of lightness before the hue of such pixels is excluded from density calculations.

border_size

Image border excluded from density calculations as percentage of image size.

iso_blur

Width of Gaussian filter applied to image. A value of 0 turns off blurring.


ctross/DieTryin documentation built on Sept. 8, 2024, 8:07 p.m.