write_pfm {picohdr} | R Documentation |
Write a numeric array as PFM
write_pfm(arr, filename, endian = "little")
arr |
numeric matrix or array (with 3 planes) |
filename |
filename or connection object. If filename ends with ".xz", '.bz2' or '.gz', then it will be automatically compressed. |
endian |
One of 'little' or 'big'. Default: 'little' |
None.
Other PFM functions:
read_pfm()
arr <- array(runif(10 * 30 * 3), dim = c(10, 30, 3))
write_pfm(arr, tempfile())