level adjust

From DavinciWiki
(Difference between revisions)
Jump to: navigation, search
Line 2: Line 2:
 
Match contrast and levels from one [[v_object]] to another
 
Match contrast and levels from one [[v_object]] to another
 
|
 
|
Arguments: Accepts two v_object and an ignore value
+
Arguments: Accepts two v_objects, an ignore value and an option.
  
Return Values: Modifies the src v_object and the multiplier and offest as a 2x1x1 float array
+
Return Values: Modifies the src v_object but returns no values to the user.
 
|
 
|
[[Syntax]]: v_insert(src = STRUCT, dst = STRUCT, [ignore = FLOAT])
+
[[Syntax]]: v_insert(obj = STRUCT, to = STRUCT [, ignore = FLOAT] [, opt = INT])
 
   
 
   
src - First v_object which will have its values modified in the overlapping regions
+
obj - First v_object which will have its values modified in the overlapping regions
 
   
 
   
dst - Secon v_object that the first v_object will be adjusted to.
+
to - Second v_object that the first v_object will be adjusted to.
  
ignore - Value that is not data
+
ignore - Value that is not data. Default is -32768.
 +
 
 +
opt - Type of level adjustment desired. Default is 1.
 +
*= 1 will perform linear fit (scale and offset)
 +
*= 2 will offset only without scaling
 
|
 
|
 
  dv> a
 
  dv> a
Line 34: Line 38:
 
   
 
   
 
  dv> d = level_adjust(src=a,dst=b,ignore=0)
 
  dv> d = level_adjust(src=a,dst=b,ignore=0)
35.373180 -0.128633
 
2x1x1 array of float, bsq format [8 bytes]
 
-10.44373608    0.4356834292
 
 
|
 
|
 
The left image is before, the middle image is the image the first image will be adjusted to, and the thrid image is the adjusted image.
 
The left image is before, the middle image is the image the first image will be adjusted to, and the thrid image is the adjusted image.

Revision as of 10:20, 31 July 2006


Description

Match contrast and levels from one v_object to another

Arguments and Return Values

Arguments: Accepts two v_objects, an ignore value and an option.

Return Values: Modifies the src v_object but returns no values to the user.

Usage

Syntax: v_insert(obj = STRUCT, to = STRUCT [, ignore = FLOAT] [, opt = INT])

obj - First v_object which will have its values modified in the overlapping regions

to - Second v_object that the first v_object will be adjusted to.

ignore - Value that is not data. Default is -32768.

opt - Type of level adjustment desired. Default is 1.

  • = 1 will perform linear fit (scale and offset)
  • = 2 will offset only without scaling

Examples

dv> a
struct, 7 elements
    data: 500x300x1 array of byte, bsq format [150,000 bytes]
    h: 300
    lines: 0
    samples: 0
    w: 500
    x: 0
    y: 0
dv> b
struct, 7 elements
    data: 500x300x1 array of byte, bsq format [150,000 bytes]
    h: 300
    lines: 0
    samples: 0
    w: 500
    x: 250
    y: 150 

dv> d = level_adjust(src=a,dst=b,ignore=0)

Images

The left image is before, the middle image is the image the first image will be adjusted to, and the thrid image is the adjusted image. v make1.png v make2.png level adjust.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