setZero: Normalize Image to Given Zero Value

View source: R/setZero.R

setZeroR Documentation

Normalize Image to Given Zero Value

Description

Scale an image and crop at the given zero value.

Usage

setZero(x, zero, min.value = 0, ...)

Arguments

x

Grayscale Image object or a list of such objects.

zero

Numeric vector or list of vectors specifying the zero value pixel for each frame. If missing, this will be determined with getZero.

min.value

Numeric value or list of values to be the new minimum value in the transformed image, default of 0.

...

Values passed to getZero such as frac.

Details

Each frame of the argument will be linearly scaled by subtracting zero. If zero is missing, getZero will be called to determine default zero values. Pixel values less than min.value will be set to min.value.

This function will probably replace bnormalize soon. This function is typically applied after using getZero to determine the likely zero value.

Value

An object of the same structure as the argument x that has been linearly scaled and cropped.

See Also

bnormalize, getZero


ornelles/virustiter documentation built on March 29, 2024, 8:30 p.m.