rgb

From DavinciWiki
Jump to: navigation, search


Description

Generate a 3-plane RGB image

Arguments and Return Values

Arguments:Three numeric arrays of equal x and y dimension

Return Value: A bip byte RGB image

Usage

Syntax: rgb(red = VAL, green = VAL, blue = VAL)

The rgb() function duplicates the three specified objects, and concatenates them together into a 3-band BIP cube, suitable for output as a PPM image.

Each image must be an BYTE image and have the same X and Y dimensions.

Examples

dv> a1
400x300x1 array of byte, bsq format [120,000 bytes]

dv> a2
400x300x1 array of byte, bsq format [120,000 bytes]

dv> a3 
400x300x1 array of byte, bsq format [120,000 bytes]

dv> b = rgb(a1,a2,a3)
400x300x3 array of byte, bip format [360,000 bytes]

Images

rgb.png

DavinciWiki Mini-Nav Bar

Contents


Contact Developers

  • davinci-dev [AT] mars.asu.edu

All other topics

  • See navigation on the left

Related Functions

Recent Core Changes

Modified On: 03-27-2006

Personal tools