stretch

From DavinciWiki
Jump to: navigation, search

Description

Scale data to byte images using different stretching techniques.

Arguments and Return Values

Arguments: A numeric array and stretching parameters

Return Value: A byte image.

Usage

Syntax: stretch(array, stretch_type, param1 [, param2] [, out_low = INT] [, out_high = INT] [, full = 1])

'array' - A 1 band numeric array

'stretch_type' - As a string (in quotes), one of the following five options:

  • auto - Automatic limit determination for linear stretch
    • param1 - auto_end_val
  • linear - Linearly stretch the data between values designated by param1 and param2
    • param1 - z min
    • param2 - z max
  • sigma - Linearly stretch the data according to a maximum number of standard deviations
    • param1 - of sigmas away from mean to set to min and max DN in output array
  • minmax - Linearly stretch the data between the min and max
  • table - Linearly stretch data according to a table of look up values
    • param1 - table mapping of input values to output values

Examples

dv> b=stretch(a,"auto", -19547, out_low = 10)

or

dv> c=stretch(a,'table',b)

DavinciWiki Mini-Nav Bar

Contents


Contact Developers

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

All other topics

  • See navigation on the left

Related Functions

Recent Library Changes

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

Personal tools