readlut: read lookup table

Description Usage Arguments Details Value Author(s) Examples

View source: R/clusterluts.R

Description

The file will be read as binary with three (unsigned) bytes per color and return a color matrix with columns corresponding to the color entries (RGB).

Usage

1

Arguments

file

lookup table file

length

number of color entries to read

...

ignored

Details

If length is specified, read only that many entries, otherwise all. Some consistency checks on the file size are performed.

Value

color matrix (see description)

Author(s)

Benno Pütz puetz@psych.mpg.de

Examples

1
2
3
4
## Not run: 
   lut <-  readlut('test.lut')

## End(Not run)

bennop/clusterLUTs documentation built on Nov. 21, 2020, 9:07 a.m.