v paste

From DavinciWiki
Jump to: navigation, search

Description

Insert the values of one v_object into another v_object maintaining the boundary of the union of the two v_objects.

Arguments and Return Values

Arguments: Accepts two v_objects and an ignore value

Return Values: Returns a modified v_object

Usage

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

src - First v_object which will have its values inserted added 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_paste(src=a,dst=b,ignore=0)

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

dv> c=v_paste(a,b,ignore=0)
struct, 5 elements
   x: 0
   y: 0
   w: 750
   h: 450
   data: 750x450x1 array of int, bsq format [1,350,000 bytes]

Images

v make1.png v make2.png v paste.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