recoloredImage {recolorize} | R Documentation |
Get recolored image from a recolorize object
Description
recolorize
objects use a numeric color map and a matrix of
color centers to make recolored images, since this is a lighter weight
and more flexible format. This function generates a colored image
from those values for plotting.
Usage
recoloredImage(recolorize_obj, type = "array")
Arguments
recolorize_obj |
An object of class |
type |
Type of image to return. One of either "array" or "raster". Arrays are numeric RGB arrays (larger, but easier to do operations on), rasters are matrices of hex codes (smaller, only really good for plotting). |
Value
A numeric image array (if type = array
) or a matrix of hex codes (
if type = raster
).
[Package recolorize version 0.1.0 Index]