do rgb

From DavinciWiki
Revision as of 14:51, 20 October 2006 by Keith (Talk | contribs)

Jump to: navigation, search

Description

A quick shortcut to make RGB images with any three bands of a single data array

Arguments and Return Values

Arguments: A numeric array greater than 3 bands deep, and three band numbers to use as red, green and blue

Return Value: A three band bip byte RGB image.

Usage

Syntax: do_rgb(data, band1, band2, band3 [, ignore = VAL] [,var = VAL])

'data' - a multiband numeric array of greater than three bands

'band1 - band3' - the red, green and blue bands in the dcs calculation

'ignore' - an optional null value of the data, default = -32768

'var' - variance value used in thm.sstretch algorithm, default = 40.

Each band will be sstretched individually and pasted together to form a byte image.

Requires the thm module.

Examples

dv> a
300x750x10 array of float, bsq format [9,000,000 bytes]

dv> b
300x750x10 array of float, bsq format [9,000,000 bytes]

dv> display(do_rgb(a,9,6,4))

dv> display(do_rgb(a,7,5,3,ignore = 0))

dv> pic = do_rgb(a,1,2,3,var = 70)

Images

do rgb.png

DavinciWiki Mini-Nav Bar

Contents


Contact Developers

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

All other topics

  • See navigation on the left

Major Sub-Functions

Related Functions

Recent Library Changes

Created On: 02-15-2006
Modified On: 01-17-2008

Personal tools