load_binary: loads either 2- or 3-dimensional data from a binary file

Description Usage Arguments Details Examples

View source: R/superpixels.R

Description

loads either 2- or 3-dimensional data from a binary file

Usage

1

Arguments

path

a character string specifying a file path ( where the binary data is saved )

type

a character string. Either '2d' or '3d' to indicate what kind of data data will be loaded from the specified path

Details

This function can be used to load either 2- or 3-dimensional data from a binary file. It is used in combination with the superpixels function in case that the write_slic parameter is not an empty string ("").

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
## Not run: 

library(OpenImageR)

#------------------------------------------
# assuming the saved data are 2-dimensional
#------------------------------------------

path = "/my_dir/data.bin"

res = load_binary(path, type = '2d')


## End(Not run)

OpenImageR documentation built on Sept. 10, 2021, 5:08 p.m.