Learn R Programming

CTRing (version 0.1.0)

Density Profiles of Wood from CT Scan Images

Description

Computerized tomography (CT) can be used to assess certain wood properties when wood disks or logs are scanned. Wood density profiles (i.e. variations of wood density from pith to bark) can yield important information used for studies in forest resource assessment, wood quality and dendrochronology studies. The first step consists in transforming grey values from the scan images to density values. The packages then proposes a unique method to automatically locate the pith by combining an adapted Hough Transform method and a one-dimensional edge detector. Tree ring profiles (average ring density, earlywood and latewood density, ring width and percent latewood for each ring) are then obtained.

Copy Link

Version

Install

install.packages('CTRing')

Monthly Downloads

175

Version

0.1.0

License

GPL-3

Maintainer

Robert Schneider

Last Published

September 10th, 2024

Functions in CTRing (0.1.0)

plotImageProfile

Plot scan image, profile path and ring limits
plotProfile

Plot density profile
getImageInfo

Extract from header of CT scan image grayscale number of bits and pixel size
getEwLw

Establish the transition point from earlywood to latewood for a series of rings
addYears

Add years to series
extractProfile

Get profile between two points of the CTScan image matrix
checkProfile

Verify position of ring transitions of a density profile
detect_pith

Automatically detect pith in a CT scan image
deleteRingFromProfile

Delete ring from a pith to bark profile
addRingFromImage

Add ring to pith to bark profile from CT scan image
addRingFromProfile

Add ring to pith to bark profile from profile plot
calcAvgDens

Calculate average wood, earlywood and latewood density for every ring
deleteRingFromImage

Add ring to pith to bark profile from CT scan image
pithCoordinates

convert pith coordinates from pixels to length units
locatePathEnd

Get coordinates of the end of the path on a CT scan image
imageToMatrix

Convert dicom image to matrix
removeLastYear

Remove the last year of a profile
densityDataFrame

Convert to dataframe
grayToDensity

Convert from 8bit gray scale to density
relToPixel

Change from relative to fixed pixel coordinate system
verifyPith

Check if pith location is correct
xBitTo8Bit

Convert gray scale from measured bits to 8bit