Description Usage Arguments Details Value Examples
View source: R/orient_sample.R
The EinScan SP records points in a coordinate system where the camera eye is (0,0,0). This is the first step in the pipeline, prior to other cleaning operations (these are threefold: removing the sample holder; adjusting the x and y coordinates so the specimen is precisely centered; moving the mesh up or down so its original/undisturbed surface lies in the x-y plane)
1 | orient_sample(mesh, rot_tr_matr)
|
mesh |
a "mesh3d" object |
rot_tr_matr |
a 4x4 matrix |
orient_sample()
takes a "mesh3d" object and a 4x4 matrix as inputs and
passes them to Morpho::applyTransform. The matrix can be specified three
ways, in order of increasing preference:
Saved as an .rda file so can be accessed any time soilmesh is loaded
Converted from a .csv or other flat file, then converted to a matrix with
as.matrix()
3. Manually inputted with matrix()
Every time the scanner is moved or re-calibrated, a new matrix must be computed. This function is designed to make that process less of a pain and to ensure the entire pipeline is not broken irreversibly by accidentally bumping the scanner.
the rotated and translated "mesh3d" object
1 | orient_sample(mesh = untrimmed_mesh1, rot_tr_matr = method_development_rtmatrix)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.