hpf: High Pass Filter

View source: R/hpf.R

hpfR Documentation

High Pass Filter

Description

Attenuate slowly varying signals in an Image object

Usage

hpf(x, sigma = 21, min.value = 2^-12)

Arguments

x

An Image object or array

sigma

A numeric passed to gblur as the standard deviation of the Gaussian filter used for initial blurring. This should be approximately the minimum size of the feature to keep

min.value

Numeric value for the minimum value returned by this function

Details

This function subtracts the blurred image from the original image and adds the mean value of the original image. The resulting pixels are trimmed so that the lowest value is 'codemin.value.

Value

An image object of the same size with slowly varying signals removed.


ornelles/EBImageExtra documentation built on Aug. 10, 2022, 11:44 p.m.