buildqPLM | R Documentation |
buildqPLM
creates an array-format qPLMarr object by
combining images of the same static specimen with the rotating analyzer set
at consistent intervals.
buildqPLM(
steps = 6,
tiffs.glob,
pixelshift = 10,
mask.glob = NULL,
north.thickness,
south.thickness = NULL,
west.thickness = NULL,
east.thickness = NULL,
wavelength = 532,
birefringence = 0.005,
pixel = 7.5832259,
up = 0,
mask = TRUE,
data.type = "generic"
)
steps |
The number of analyzer positions used. Default is six (six images with 30 degrees rotation of the analyzer between each). |
tiffs.glob |
A string that identifies any shared part of the file names in the image series. |
pixelshift |
|
mask.glob |
A string that identifies the file name of the mask. Required
if |
north.thickness |
Thickness of the specimen at its 'North' (top) edge. N, S, W, & E thicknesses can be specified separately to model 'wedged' specimens that do not have a consistent thickness across the entire specimen face. If the specimen can be assumed to have a constant thickness across the field of view, the N value will be used to fill in S, W, & E by default. |
south.thickness |
'South' (bottom) edge thickness. |
west.thickness |
'West' (left) edge thickness. |
east.thickness |
'East' (right) edge thickness. |
wavelength |
The center of the illumination wavelength. Default is a 532nm green filter. |
birefringence |
The expected birefringence of the specimen. Default
value is a semi-empirical lab standard of |
pixel |
The absolute size of a pixel in the specimen plane. Intended to be in microns, but the value is arbitrary and not currently linked to specific dimensions in other functions. Default value is lab standard for Leica Z6 Macroscope at 1.25x, MA1000 camera with 1x C-mount. |
up |
'Map-view' compass orientation to track a specific axis. Can be used, for example, to specify the dorsal side of a long bone cross-section. This value is passed to the qPLMarr object's attributes and does not influence the values in the result array. |
mask |
If |
data.type |
Character string; description of section type in broad
terms, e.g., <<"diaphyseal cross section">>. Keeps specimen data with
qPLMarr object as an attribute, and can also be used for watchdogs in
analysis functions. For example, applying |
Native R qPLM analysis from multiple images of a static specimen with a rotating analyzer. This code is an adaptation of the method of Glazer et al. (1996), with the intent of providing an inexpensive alternative that can be employed without extensive microscope customization.
A qPLMarr
object, an three-dimensional array that records
pixel-by-pixel estimates of I (transmissivity), theta
(angular orientation out of plane), and phi (angular orientation
in plane). qPLMarr objects also keep relevant data regarding the specimen:
thickness, illumination wavelength, the birefringence parameter used to
calculate orientations, pixel scale, etc.
Glazer, A.M., Lewis, J.G., and Kaminsky, W., 1996. An automatic optical imaging system for birefringent media. Proc R Soc A 452(1955): 2751 - 2765.
Kaminsky, W., Gunn, E., Sours, R., and Kahr, B., 2007. Simultaneous false-colour imaging of birefringence, extinction and transmittance at camera speed. J Microsc 228(2): 153 - 164.
Other qPLM Input Functions:
densBiref()
oldwd<-getwd()
setwd(system.file("extdata", package = "microTransit"))
testqPLMarr<-buildqPLM(steps = 6, tiffs.glob = "OsteonImg*",
mask.glob = "OsteonMask*", north.thickness = 40)
save(testqPLMarr, "testqPLMarr.R")
setwd(oldwd)
qPLMTiff("testqPLM", testqPLMarr)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.