import_treeqsm {rTwig}R Documentation

Import TreeQSM

Description

Imports a QSM created by TreeQSM

Usage

import_treeqsm(filename, version = "2.x.x")

Arguments

filename

a TreeQSM .mat MATLAB file

version

TreeQSM version. Valid versions include ⁠2.3.0⁠ - ⁠2.4.1⁠ and 2.0. Defaults to the most recent format of ⁠2.x.x⁠.

Value

Returns a list

References

Raumonen P, Kaasalainen M, Ã…kerblom M, Kaasalainen S, Kaartinen H, Vastaranta M, Holopainen M, Disney M, Lewis P (2013). “Fast Automatic Precision Tree Models from Terrestrial Laser Scanner Data.” Remote Sensing, 5(2), 491–520. doi:10.3390/rs5020491.

Examples


## Read a TreeQSM MATLAB file in the 2.3.x - 2.4.x format
file <- system.file("extdata/QSM.mat", package = "rTwig")
qsm <- import_treeqsm(file, version = "2.x.x")
summary(qsm)

## Read a TreeQSM MATLAB file in the 2.0 format
file <- system.file("extdata/QSM_2.mat", package = "rTwig")
qsm <- import_treeqsm(file, version = "2.0")
names(qsm)


[Package rTwig version 1.4.0 Index]