smoothCarpet: Smooth Carpet (Single Image)

Description Usage Arguments Details Value Author(s) See Also Examples

View source: R/smoothCarpet.R

Description

Generates a smooth carpet.

Usage

1
smoothCarpet(img, dfV = 0, dfH = 0)

Arguments

img

The image to analyze.

dfV

The desired equivalent number of degrees of freedom in the vertical axis.

dfH

The desired equivalent number of degrees of freedom in the horizontal axis.

Details

The smoothCarpet function makes use of the smooth.spline method to smooth the vertical and horizontal axes of an image. The magnitude of the smoothing depends on the degrees of freedom set for and vertical ('dfV') and horizontal ('dfH') axes of the image.

Value

Smooth Carpet A smooth image.

Author(s)

Raúl Pinto Cámara.

See Also

pcomb, smooth.spline

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
### Load the FCSlib package

library(FCSlib)

### As an example, we will use a data set that corresponds to a population of Venus dimers
# diffusing in HEK-293 cells. Use the readFileTiff() function to extract the information
# from the '.tiff' files.

v2 <- data.matrix(V2)
nbv2 <- nbline(img = v2, S=3.5, sigma0 = 1,offset = 0, wSigma = 100);
sC <- smoothCarpet(img = nbv2$number, dfV = 5, dfH = 5)

FCSlib documentation built on Nov. 27, 2020, 5:09 p.m.

Related to smoothCarpet in FCSlib...