dataSegments | R Documentation |
Segmented data sets required by function
plotSegments
.
dataSegments(image, segs = 1,
...)
image |
Either path of an |
segs |
number of |
... |
arguments to be passed to three functions:
|
a list with segmented sets of the gray matrix, the ring
borders, and the ring widths (see
plotSegments
).
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>)
## (not run) Read one image section in package measuRing:
image1 <- system.file("P105_a.tif", package="measuRing")
## (not run) compute a gray matrix from its RGB:
gray <- imageTogray(image1)
## (not run) Columns in gray matrix to be included/excluded:
Toinc <- c(196,202,387,1564)
Toexc <- c(21,130,197,207,1444,1484)
## (not run) segmented data:
segm <- dataSegments(image1,segs = 3)
lapply(segm,str)
attributes(segm)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.