write_pfm {picohdr} | R Documentation |
Write a numeric array as PFM
Description
Write a numeric array as PFM
Usage
write_pfm(arr, filename, endian = "little")
Arguments
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' |
Value
None.
See Also
Other PFM functions:
read_pfm()
Examples
arr <- array(runif(10 * 30 * 3), dim = c(10, 30, 3))
write_pfm(arr, tempfile())
[Package picohdr version 0.1.1 Index]