Learn R Programming

measuRing (version 0.5.1)

linearDetect: Linear detection

Description

Function for developing linear detection of ring borders.

Usage

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

Value

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

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.

Author

Wilson Lara <wilarhen@gmail.com> [aut, cre] (<https://orcid.org/0000-0003-3527-1380>), Carlos Sierra [aut] (<https://orcid.org/0000-0003-0009-4169>), Felipe Bravo [aut] (<https://orcid.org/0000-0001-7348-6695>)

Examples

Run this code
## (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)

Run the code above in your browser using DataLab