writeTiff {rtiff} | R Documentation |
Loads a TIFF image from a file and returns the image as a pixmap object, with optional scaling.
writeTiff(pixmap, fn)
pixmap |
Either a pixmapRGB or matrix containing the image to save. In the case of a matrix, a new pixmapRGB will be created from it. The resulting TIFF file will be RGB, but will appear grey because each channel will be identical. |
fn |
What to call the new tiff file. |
This function saves the given pixmap or matrix raster as an unencrypted TIFF image, utilizing libtiff's TIFFWriteEncodedStrip, with the entire raster in a single strip (for simplicity).
None. Used for its handy side effect of creating a tiff file.
Eric Kort <eric.kort@vai.org>
library(rtiff) tif <- readTiff(paste(.path.package("rtiff"), "/tiff/jello.tif", sep="")) writeTiff(tif@red, "atesttif.tif")