linearDetect: Linear detection

Description Usage Arguments Value Author(s) Examples

Description

Function for developing linear detection of ring borders.

Usage

1
linearDetect(smoothed, origin = 0, darker = TRUE)

Arguments

smoothed

a data frame with smoothed grays such as that produced by graySmoothed.

origin

numeric. an origin in smoothed gray to find the ring borders.

darker

logical. If TRUE the algorithm uses the negative extremes on smoothed grays to detect the ring borders. If FALSE the possitive extremes are used.

Value

vector with column numbers in gray matrix of the detected ring borders (see grayDarker, and graySmoothed).

Author(s)

Wilson Lara, Carlos Sierra, Felipe Bravo

Examples

1
2
3
4
5
6
7
## (not run) Read one image section in package measuRing:
image1 <- system.file("P105_a.tif", package="measuRing")    
## (not run) smoothed gray:
smoothed <- graySmoothed(image1)
## linear detection:
borders <- linearDetect(smoothed)
str(borders)

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