CreateEmptyImage: Create an empty rMSI object with defined mass axis and size.

Description Usage Arguments Value

View source: R/librMSIdata.R View source: R/librMSIdata.R

Description

Create an empty rMSI object with defined mass axis and size.

Create an empty rMSI object with defined mass axis and total number of pixels.

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
CreateEmptyImage(
  num_of_pixels,
  mass_axis,
  pixel_resolution,
  img_name = "New empty image",
  ramdisk_folder = getwd(),
  data_type = "integer",
  uuid = NULL
)

CreateEmptyImage(
  num_of_pixels,
  mass_axis,
  pixel_resolution,
  img_name = "New empty image",
  ramdisk_folder = getwd(),
  data_type = "integer",
  uuid = NULL
)

Arguments

num_of_pixels

Total number of spectrums/pixels.

mass_axis

the mass axis.

pixel_resolution

defined pixel size in um.

img_name

the name for the image.

ramdisk_folder

where ramdisk will be stored.

data_type

a string determining data type used to store data.

uuid

a string containing an universal unique identifier for the image. If it is not provided it will be created using a time code.

Creates an empty rMSI object with the provided parameters. This method is usefull to implement importation of new data formats and synthetic datasets to test and develop processing methods and tools. img$size is initialized with c(NA, NA) and the pos matrix with NA coords. Size and pos matrix must be filled by user.

data_type possible values are: byte 8 bit signed integer with NA. ubyte 8 bit unsigned integer without NA. short 16 bit signed integer with NA. ushort 16 bit unsigned integer without NA. integer 32 bit signed integer with NA. single 32 bit float. double 64 bit float.

x_size

the number of pixel in X direction.

y_size

the number of pixel in Y direction.

Value

the created rMSI object

the created rMSI object


prafols/rMSI documentation built on Dec. 12, 2021, 7:29 p.m.