Diff of /man/importImageData.Rd [000000] .. [413088]

Switch to unified view

a b/man/importImageData.Rd
1
% Generated by roxygen2: do not edit by hand
2
% Please edit documentation in R/import.R
3
\name{importImageData}
4
\alias{importImageData}
5
\title{importImageData}
6
\usage{
7
importImageData(
8
  image,
9
  tile.size = 10,
10
  segments = NULL,
11
  image_name = "main",
12
  channel_names = NULL,
13
  ...
14
)
15
}
16
\arguments{
17
\item{image}{a single or a list of image paths or magick-image objects}
18
19
\item{tile.size}{the size of tiles}
20
21
\item{segments}{Either a list of segments or a GeoJSON file. This will result in a second assay in the VoltRon object to be created}
22
23
\item{image_name}{the image name of the Image assay, Default: main}
24
25
\item{channel_names}{the channel names of the images if multiple images are provided}
26
27
\item{...}{additional parameters passed to \link{formVoltRon}}
28
}
29
\description{
30
import an image as VoltRon object
31
}
32
\examples{
33
# single image
34
imgfile <- system.file("extdata", "DAPI.tif", package = "VoltRon")
35
vrdata <- importImageData(imgfile, image_name = "main")
36
37
# multiple images
38
imgfile <- c(system.file("extdata", "DAPI.tif", package = "VoltRon"), 
39
             system.file("extdata", "DAPI.tif", package = "VoltRon"))
40
vrdata <- importImageData(imgfile, image_name = "main", channel_name = c("DAPI", "DAPI2"))
41
42
}