v insert

From DavinciWiki
Jump to: navigation, search

Description

Insert the values of one v_object into another v_object maintaining only the boundary of the dst v_object.

Arguments and Return Values

Arguments: Accepts two v_objects and an ignore value

Return Values: Returns a modified v_object

Usage

Syntax: v_insert(src = STRUCT, dst = STRUCT, [ignore = FLOAT])

src - First v_object which will have its values inserted over the dst v_object

dst - Second v_object which will be modified

ignore - Value that is not data

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> v_insert(src=a,dst=b,ignore=0)

Optional usage where a new structure is created and stored in the variable c

dv> c=v_insert(a,b,ignore=0)
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

Images

v make1.png v make2.png v insert.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-20-2006
Modified On: 01-17-2008

Personal tools