Learn R Programming

IFC (version 0.1.1)

ExtractImages_toBase64: Shorcut for Batch Images Extraction to Base64

Description

Function to shortcut extraction, normalization and eventually colorization of images to matrix ! excludes mask.

Usage

ExtractImages_toBase64(
  ...,
  objects,
  offsets,
  display_progress = TRUE,
  mode = c("rgb", "gray")[1]
)

Arguments

...

arguments to be passed to objectExtract with the exception of 'ifd' and 'bypass'(=TRUE). If 'param' is provided 'export'(="base64") and 'mode' will be overwritten. If 'offsets' are not provided extra arguments can also be passed with ... getOffsets. /!\ If not any of 'fileName', 'info' and 'param' can be found in ... then attr(offsets, "fileName_image") will be used as 'fileName' input parameter to pass to objectParam.

objects

integer vector, IDEAS objects ids numbers to use. This argument is not mandatory, if missing, the default, all objects will be used.

offsets

object of class `IFC_offset`. This argument is not mandatory but it may allow to save time for repeated image export on same file.

display_progress

whether to display a progress bar. Default is TRUE.

mode

(objectParam argument) color mode export. Either "rgb", "gray". Default is "rgb".

Value

A list of base64 encoded images corresponding to objects extracted.

Details

arguments of objectExtract will be deduced from ExtractImages_toBase64 input arguments.