colorChecker_half: Calibrate images using (right) half of ColorChecker. Only...

View source: R/colorChecker_half.R

colorChecker_halfR Documentation

Calibrate images using (right) half of ColorChecker. Only works for X-Rite.

Description

Calibrate images using (right) half of ColorChecker. Only works for X-Rite.

Usage

colorChecker_half(
  IDlist,
  prepath = NULL,
  extension = NULL,
  colorCheckerType = "X-Rite",
  fixedCorners = FALSE,
  patchSize = 0.6,
  colorCheckerXY = NULL,
  fixedModel = NULL,
  resampleFactor = NULL,
  adjustCoords = FALSE
)

Arguments

IDlist

List of sample IDs.

prepath

Prepath (default = NULL).

extension

Extension (default = NULL).

colorCheckerType

Type of colorChecker. Options are 'X-Rite ' and 'ColorGauge Micro Analyzer' (default = 'X-Rite').

fixedCorners

Specify whether to set the coordinates of the colorChecker corners for every image (default = FALSE).

patchSize

Proportion of ColorChecker patch that will be used for observed RGB values (default = 0.6).

colorCheckerXY

Landmark list of colorChecker corners as returned by makeList. The image will not be plotted.

fixedModel

Precalculated model to adjust colors. Should be a listof a model for R, G and B (the colorChecker function gives as output such a list obtained from the last image in the analysis).

resampleFactor

Integer for downsampling used by redRes.

adjustCoords

Adjust landmark coordinates in case they are reversed compared to pixel coordinates (default = FALSE).

Value

Calibrated image(s) ('filename_calibrated.jpg')


StevenVB12/patternize documentation built on Nov. 2, 2023, 8:01 p.m.