loads either 2- or 3-dimensional data (where the third dimension is equal to 3) from a binary file
Source:R/superpixels.R
load_binary.Rdloads either 2- or 3-dimensional data (where the third dimension is equal to 3) from a binary file
Details
This function can be used to load either 2- or 3-dimensional data (where the third dimension is equal to 3) 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
if (FALSE) { # \dontrun{
library(OpenImageR)
#------------------------------------------
# assuming the saved data are 2-dimensional
#------------------------------------------
path = "/my_dir/data.bin"
res = load_binary(path, type = '2d')
} # }