Class for representing luminescence image data (TL/OSL/RF). Such data are for example produced by the function read_SPE2R
Usage
# S4 method for class 'RLum.Data.Image'
show(object)
# S4 method for class 'RLum.Data.Image'
set_RLum(
class,
originator,
.uid,
.pid,
recordType = "Image",
curveType = NA_character_,
data = array(),
info = list()
)
# S4 method for class 'RLum.Data.Image'
get_RLum(object, info.object)
# S4 method for class 'RLum.Data.Image'
names_RLum(object)
Arguments
- object
get_RLum
,names_RLum
(required): an object of class RLum.Data.Image- class
- originator
set_RLum
; character (automatic): contains the name of the calling function (the function that produces this object); can be set manually.- .uid
set_RLum
; character (automatic): sets an unique ID for this object using the internal C++ functioncreate_UID
.- .pid
set_RLum
; character (with default): option to provide a parent id for nesting at will.- recordType
- curveType
set_RLum
; character: curve type (e.g. "predefined" or "measured")- data
set_RLum
; matrix: raw curve data. If data is of typeRLum.Data.Image
this can be used to re-construct the object, i.e. modified parameters except.uid
and.pid
. The rest will be subject to copy and paste unless provided.- info
- info.object
Value
set_RLum
Returns an object from class RLum.Data.Image
get_RLum
Returns the data object (array)
only the info object if
info.object
was set.
names_RLum
Returns the names of the info elements
Methods (by generic)
show(RLum.Data.Image)
: Show structure ofRLum.Data.Image
objectset_RLum(RLum.Data.Image)
: Construction method for RLum.Data.Image object. The slot info is optional and predefined as empty list by default.get_RLum(RLum.Data.Image)
: Accessor method forRLum.Data.Image
object. The argumentinfo.object
is optional to directly access the info elements. If no info element name is provided, the raw image data (array
) will be returned.names_RLum(RLum.Data.Image)
: Returns the names info elements coming along with this curve object
Slots
recordType
Object of class character containing the type of the curve (e.g. "OSL image", "TL image")
curveType
Object of class character containing curve type, allowed values are measured or predefined
data
Object of class array containing image data.
info
Object of class list containing further meta information objects
Note
The class should only contain data for a set of images. For additional
elements the slot info
can be used.
Objects from the class
Objects can be created by calls of the form set_RLum("RLum.Data.Image", ...)
.
Author
Sebastian Kreutzer, Institute of Geography, Heidelberg University (Germany) , RLum Developer Team
How to cite
Kreutzer, S., 2024. RLum.Data.Image-class(): Class 'RLum.Data.Image'. In: Kreutzer, S., Burow, C., Dietze, M., Fuchs, M.C., Schmidt, C., Fischer, M., Friedrich, J., Mercier, N., Philippe, A., Riedesel, S., Autzen, M., Mittelstrass, D., Gray, H.J., Galharret, J., Colombo, M., 2024. Luminescence: Comprehensive Luminescence Dating Data Analysis. R package version 0.9.26. https://r-lum.github.io/Luminescence/
Examples
showClass("RLum.Data.Image")
#> Class "RLum.Data.Image" [package "Luminescence"]
#>
#> Slots:
#>
#> Name: recordType curveType data info originator .uid
#> Class: character character array list character character
#>
#> Name: .pid
#> Class: character
#>
#> Extends:
#> Class "RLum.Data", directly
#> Class "RLum", by class "RLum.Data", distance 2
##create empty RLum.Data.Image object
set_RLum(class = "RLum.Data.Image")
#>
#> [RLum.Data.Image-class]
#> recordType: Image
#> curveType: NA
#> .. recorded frames: 1
#> .. .. pixel per frame: NA
#> .. .. x dimension [px]: 1
#> .. .. y dimension [px]: NA
#> .. .. full pixel value range: NA : NA
#> additional info elements: 0