v cut

From DavinciWiki
Jump to: navigation, search

Description

Cut a v_object to the specified size using another v_object.

Arguments and Return Values

Arguments: Accepts two v_objects

Return Values: Returns a modified v_object

Usage

Syntax: v_insert(src = STRUCT, box = STRUCT)

src - First v_object which will be cut but not be modified

box - Second v_object that defines the cutting area, may or may not have .data element. If this argument is explicitly defined then a .data element will be created. If it is non-explicitly defined then the new v_object will be stored in an output variable.

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> box
struct, 4 elements
   w: 150
   h: 150
   x: 300
   y: 150

dv> v_cut(src=a,box=box)

dv> box
struct, 5 elements
   w: 150
   h: 150
   x: 300
   y: 150
   data: 150x150x1 array of byte, bsq format [22,500 bytes]

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

dv> c=v_cut(a,box)
struct, 5 elements
   w: 150
   h: 150
   x: 300
   y: 150
   data: 150x150x1 array of byte, bsq format [22,500 bytes]

Images

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