Truncate a QSM
Truncate a QSM at a radius threshold
Truncate_QSM( aRchi, threshold = NULL, Keepdaughters = FALSE, plotresult = FALSE ) ## S4 method for signature 'aRchi' Truncate_QSM( aRchi, threshold = NULL, Keepdaughters = FALSE, plotresult = FALSE )
aRchi |
an object of class aRchi with at least a QSM and a Paths table. |
threshold |
numeric. The radius threshold in meter. |
Keepdaughters |
logical (default = |
plotresult |
logical (default = |
The threshold is applied to a whole segments. In other word, if a segment has at least one cylinder lower than the threshold it is removed as well as everything upstream (except the direct daughters if Keepdaughters=TRUE
).
An aRchi file with the QSM truncated
Clean_QSM
to clean a QSM of an object aRchi.
# Read an aRchifile with a QSM and paths tables. file=system.file("extdata","Tree_1_aRchi.aRchi",package = "aRchi") Tree1_aRchi=read_aRchi(file) # Truncate the QSM: 5cm radius threshold Truncated_Tree1_aRchi=Truncate_QSM(Tree1_aRchi,plotresult = TRUE,threshold = 0.05)
Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.