enhanceImage: Adjust image brightnes and contrast

View source: R/visium.utilities.R View source: R/.ipynb_checkpoints/visium.utilities-checkpoint.R

enhanceImageR Documentation

Adjust image brightnes and contrast

Description

Adjust image brightnes and contrast

Usage

enhanceImage(p, wb = FALSE, qs = NULL, trim01 = TRUE)

Arguments

p

image (3d numeric array)

wb

logical, specifies whether output image should be transformed to grayscale

qs

quantiles to trim. Numerical vector with two items. Trims all values outside of specified quantile range.

trim01

logical, specifies whether pixels with zero (black) and maximal (white) intensity should be trimed ahead of quantile trimming.

Value

image (3d numeric array)


iaaka/visutils documentation built on Jan. 17, 2025, 11:29 p.m.