Skip to contents

Converts from a RasterBrick to a numeric array. Useful in going from patternize to recolorize.

Usage

brick_to_array(raster_brick)

Arguments

raster_brick

An object of RasterBrick class.

Value

An image array (probably 1, 3, or 4 channels).

Details

This function is provided to convert from the RasterBrick objects provided by the alignment functions in the patternize package, e.g. alignLan.