graySmoothed: Smoothed gray

Description Usage Arguments Value Author(s) Examples

Description

Averaging, detrending, and smoothing of the columns in a gray matrix.

Usage

1

Arguments

image

character or matrix. Either path of an image section or an array representing a gray matrix.

all

logical. If TRUE the column numbers and moving averages are added to the output.

...

arguments to be passed to imageTogray.

Value

data frame with the smoothed grays. If all is TRUE then the output is extended with the columns in gray matrix, and moving averages.

Author(s)

Wilson Lara, Carlos Sierra, Felipe Bravo

Examples

1
2
3
4
5
6
7
8
9
## (not run) Read one image section in package measuRing:
image1 <- system.file("P105_a.png", package="measuRing")    
## (not run) the smoothed gray:
smoothed <- graySmoothed(image1,ppi=1000)
## (not run) Plot of the smoothed gray:        
Smooth <- ts(smoothed)
main. <- 'Smoothed gray'
plot(Smooth,xlab = 'Column', main=main.,
     ylab = 'Smoothed gray',col = 'gray')

measuRing documentation built on May 2, 2019, 12:48 p.m.