v border

From DavinciWiki
Jump to: navigation, search

Description

Create a border along of any size and any short value along the inside of the valid data. The result is stored in a v_object. This v_object can later be v_added to another v_object to create an outline of the data. This may be useful to emphasize the location of new data in a complex v_object, such as in mosaicking. The process may be reversed by v_adding negative 2 times the border value from the data v_object.

Arguments and Return Values

Arguments: Accepts one v_object, a size, an offset, and an ignore value

Return Values: Returns a v_object containing only the border

Usage

Syntax: v_insert(src = STRUCT, [size = INT], [offset = SHORT], [ignore = FLOAT])

src - The v_object used to make the border

size - The size of the desired border which is propagated inward over the data.

offset - The desired value of the border

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> c=v_border(src=a, size=7, offset=255, ignore=0)
struct, 7 elements
   data: 500x300x1 array of short, bsq format [150,000 bytes]
   h: 300
   lines: 0
   samples: 0
   w: 500
   x: 0
   y: 0


Images

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