level adjust
m |
|||
(9 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
{{DavinciWiki_Function| | {{DavinciWiki_Function| | ||
+ | Match contrast and levels from one [[v_object]] to another | ||
| | | | ||
− | Arguments: | + | 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. | ||
+ | | | ||
+ | [[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 | ||
| | | | ||
+ | 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) | ||
| | | | ||
+ | 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. | ||
+ | [[Image:v_make1.png|250px]] [[Image:v_make2.png|250px]] [[Image:level_adjust.png|250px]] | ||
| | | | ||
+ | *[[hasvalue]] | ||
+ | *[[v_intersect]] | ||
+ | *[[fit]] | ||
+ | *[[v_cut]] | ||
| | | | ||
+ | *[[line_match]] | ||
+ | *[[v_insert]] | ||
+ | *[[v_intersect]] | ||
+ | *[[v_cut]] | ||
+ | |*mosaic_tools.dvrc | ||
| | | | ||
}} | }} | ||
− | |||
[[category:Functions]] | [[category:Functions]] | ||
+ | [[category:User Defined Functions]] | ||
[[category:Mosaic Tools]] | [[category:Mosaic Tools]] |
Latest revision as of 16:19, 17 January 2008
Contents: Description, Arguments, Usage, Examples, Images, Sub-Functions, Related Functions, Source Supported Under Version: >1.00
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.
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)
|
DavinciWiki Mini-Nav Bar Contents
Contact Developers
All other topics
Major Sub-Functions
Related Functions
Recent Library Changes Created On: 02-15-2006 |