Last data update: 2014.03.03
|
R: Gray extremes
grayDarker | R Documentation |
Gray extremes
Description
This function can detect the extremes of the smoothed gray.
Usage
grayDarker(smoothed, origin = 0, darker = TRUE)
Arguments
smoothed |
a data frame with the smoothed gray such
as that produced by
graySmoothed .
|
origin |
an origin to find the extremes.
|
darker |
logical. If TRUE the function finds the
negative extremes. If FALSE the possitive
extremes are detected.
|
Value
vector with the columns in gray matrix corresponding to
the extremes (see graySmoothed and
linearDetect ).
Author(s)
Wilson Lara, Carlos Sierra, Felipe Bravo
Examples
## (not run) Read one image section:
image1 <- system.file("P105_a.png", package="measuRing")
## (not run) gray matrix from RGB in image:
gray <- imageTogray(image = image1,ppi = 1000)
## (not run) smoothed gray:
smoothed <- graySmoothed(gray)
## (not run) column numbers of possitive and negative
## extremes:
posit <- grayDarker(smoothed,darker=FALSE)
nega <- grayDarker(smoothed,darker=TRUE)
str(nega)
Results
|