do dcs

From DavinciWiki
(Difference between revisions)
Jump to: navigation, search
 
m
 
(7 intermediate revisions by 2 users not shown)
Line 1: Line 1:
{{DavinciWiki_Function}}
+
{{DavinciWiki_Function|
[[category:Scripts]]
+
A quick shortcut to make [[dcs]] images with any three bands
 +
|
 +
Arguments: A numeric array greater than 3 bands deep, and three band numbers to use in dcs operation
 +
 +
Return Value: A three band [[bip]] [[byte]] [[dcs]]-ed image.
 +
|
 +
[[Syntax]]: do_dcs(data, band1, band2, band3 [, ignore = VAL] [, sample = VAL] [, variance = 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
 +
 +
'sample'    an optional color sample array
 +
 +
'variance'  an optional color variance specification, default = 50
 +
 +
If no bands are specified an 8-7-5 stretch will be attempted.
 +
|
 +
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_dcs(a,9,6,4))
 +
 +
dv> display(do_dcs(a,7,5,3,ignore = -32768))
 +
 +
dv> pic = do_dcs(a,variance = cat(80,50,50,axis = y))
 +
300x750x3 array of byte, bip format [675,000 bytes]
 +
 +
dv> pic = do_dcs(a,ignore = 0,sample = b)
 +
300x750x3 array of byte, bip format [675,000 bytes]
 +
|
 +
[[Image:dcspic.png]]
 +
|
 +
*[[dcs]]
 +
*[[cat]]
 +
|
 +
*[[do_rgb]]
 +
*[[do_rdcs]]
 +
|*image_stretch.dvrc
 +
|
 +
}}
 
[[category:Functions]]
 
[[category:Functions]]
 +
[[category:User Defined Functions]]
 
[[category:Image Stretching]]
 
[[category:Image Stretching]]

Latest revision as of 16:07, 17 January 2008


Description

A quick shortcut to make dcs images with any three bands

Arguments and Return Values

Arguments: A numeric array greater than 3 bands deep, and three band numbers to use in dcs operation

Return Value: A three band bip byte dcs-ed image.

Usage

Syntax: do_dcs(data, band1, band2, band3 [, ignore = VAL] [, sample = VAL] [, variance = 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

'sample' an optional color sample array

'variance' an optional color variance specification, default = 50

If no bands are specified an 8-7-5 stretch will be attempted.

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_dcs(a,9,6,4))

dv> display(do_dcs(a,7,5,3,ignore = -32768))

dv> pic = do_dcs(a,variance = cat(80,50,50,axis = y))
300x750x3 array of byte, bip format [675,000 bytes]

dv> pic = do_dcs(a,ignore = 0,sample = b)
300x750x3 array of byte, bip format [675,000 bytes]

Images

dcspic.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