dcs
(6 intermediate revisions by one user not shown) | |||
Line 18: | Line 18: | ||
Performing a DCS on one band will achieve a similar result to [[sstretch]] | Performing a DCS on one band will achieve a similar result to [[sstretch]] | ||
+ | |||
+ | NOTE: This function returns a value of 1 as the minimum data value and 0 for black space as of version 1.02 | ||
| | | | ||
dv> a | dv> a | ||
Line 49: | Line 51: | ||
*[[rdcs]] | *[[rdcs]] | ||
*[[sstretch]] | *[[sstretch]] | ||
+ | *[[dcsf]] | ||
| | | | ||
− | + | *image_stretch.dvrc | |
| | | | ||
+ | 1.02 | ||
}} | }} | ||
[[category:Functions]] | [[category:Functions]] | ||
[[category:User Defined Functions]] | [[category:User Defined Functions]] | ||
[[category:Image Stretching]] | [[category:Image Stretching]] |
Latest revision as of 18:30, 15 July 2012
Contents: Description, Arguments, Usage, Examples, Images, Sub-Functions, Related Functions, Source Supported Under Version: > 1.02
Description performs a decorrelation stretch
Arguments and Return Values Arguments: a numeric array and options regarding the stretch Return Value: a 3 or 1 byte, bip array of x and y dimension equal to the input
Usage Syntax: dcs(input [, ignore = VAL] [, sample = VAL] [, variance = VAL]) 'input' can be any 1 or 3 band float/short/int array. 'ignore' is the null data value. Default = 0. 'sample' is an array of identical size to the input used to define the limits of the stretch. 'variance' is a number or set of 3 numbers defining the stretch per axis. (sigma) default = 50 Data will be centered around 127 with a sigma of +- 50. Requires either 1 or 3 bands of data to be stretched. Performing a DCS on one band will achieve a similar result to sstretch NOTE: This function returns a value of 1 as the minimum data value and 0 for black space as of version 1.02
Examples dv> a 358x1000x3 array of float, bsq format [4,296,000 bytes] dv> b 358x1000x3 array of float, bsq format [4,296,000 bytes] dv> c=dcs(a[,,1],ignore=-32768) 358x1000x1 array of byte, bip format [358,000 bytes] dv> c=dcs(a[,,1]) 358x1000x1 array of byte, bip format [358,000 bytes] Another Example dv> a 358x1000x3 array of float, bsq format [4,296,000 bytes] dv> b = dcs(cat(a[,,3],a[,,2],a[,,1],axis=z),ignore=-32768) 358x1000x3 array of byte, bip format [2,148,000 bytes]
|
DavinciWiki Mini-Nav Bar Contents
Contact Developers
All other topics
Recent Library Changes Created On: 02-15-2006 |