newPixmapRGB: Create an RGB pixmap

Description Usage Arguments Value Author(s) Examples

Description

A utility function to create an RGB pixmap object out of 3 rasters.

Usage

1
newPixmapRGB(red = NULL, green = NULL, blue = NULL)

Arguments

red

The red raster (a matrix)

green

The green raster (a matrix)

blue

The blue raster (a matrix)

Value

An object of type pixmap representing the resulting RGB image.

Author(s)

Eric Kort <eric.kort@vai.org>

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
#this is tautological, but demonstrates the syntax...
tif <- readTiff(system.file("tiff", "jello.tif", package="rtiff"))
myPixmap <- newPixmapRGB(tif@red, tif@green, tif@blue)
plot(myPixmap)

#let's scramble the color channels just for fun

getOption("device")()
myPixmap <- newPixmapRGB(tif@blue, tif@red, tif@green)
plot(myPixmap)

rtiff documentation built on Jan. 14, 2021, 5:20 a.m.

Related to newPixmapRGB in rtiff...