ij2spatstat {RImageJROI} | R Documentation |
Convert 'ijroi' and 'ijzip' objects to spatstat spatial patterns
Description
Converts ijroi
and ijzip
objects to a list of spatstat.geom spatial patterns.
Usage
ij2spatstat(
X,
window = NULL,
pattern.type = NULL,
unitname = NULL,
scale = 1,
return.type = FALSE,
convert.only = NULL
)
Arguments
X |
|
window |
the window for returned spatial patterns. Can be an |
pattern.type |
a character string specifying the desired pattern type to be returned ( |
unitname |
Name of the unit of length for the resulting window(s) (see |
scale |
A numeric value defining the scale of photograph in pixels / |
return.type |
should the type of ROI object(s) be returned in addition to spatstat.geom spatial patterns? Defaults to |
convert.only |
a character vector specifying the |
Details
The function converts ijroi
and ijzip
objects to spatstat.geom spatial patterns for further calculations with the objects. By default, areal types ("rect", "oval", "ELLIPSE", "polygon") are converted to owin
objects. Line types ("line" (including "ARROW"), "freeline", "polyline", "angle", "freehand" (excluding "ELLIPSE")) are converted to psp
objects and "point" types to ppp
objects.
Value
Returns a list of spatstat.geom patterns of approperiate type (see 'Details'). If return.type = TRUE
returns a list with two levels specifying the spatstat.geom pattern and the ROI type.
Author(s)
Mikko Vihtakari
See Also
Examples
file <- file.path(system.file(package = "RImageJROI"), "extdata", "ijroi", "ijzip.zip")
x <- read.ijzip(file)
ij2spatstat(x)