# NOT RUN {
img.path <- system.file("001.png", package = "MtreeRing")
## Read a tree ring image:
t1 <- ring_read(img = img.path, dpi = 1200)
## Split a long core sample into 3 pieces to
## get better display performance and use the
## watershed algorithm to detect ring borders:
t2 <- ring_detect(ring.data = t1, seg = 3, method = 'watershed')
## Calculate ring widths from the attribute list of t2:
rw.df <- ring_calculate(ring.data = t2, seriesID = "940220")
# }
Run the code above in your browser using DataLab