Description Usage Arguments Value Author(s) Examples
This function can detect the extremes of the smoothed gray.
1 | grayDarker(smoothed, origin = 0, darker = TRUE)
|
smoothed |
a data frame with the smoothed gray such
as that produced by
|
origin |
an origin to find the extremes. |
darker |
logical. If TRUE the function finds the negative extremes. If FALSE the possitive extremes are detected. |
vector with the columns in gray matrix corresponding to
the extremes (see graySmoothed
and
linearDetect
).
Wilson Lara, Carlos Sierra, Felipe Bravo
1 2 3 4 5 6 7 8 9 10 | ## (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)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.