v contains

From DavinciWiki
Jump to: navigation, search

Description

Determines if one v_object is contained in another v_object

Arguments and Return Values

Arguments: Accepts two v_objects or one v_object and a filename (e.g. the file to check)

Return Values: 1 or 0

Usage

Syntax: v_contains(img = STRUCT or img = STRING, dst = STRUCT[,geo = BOOL])

img - the v_object to check

dst - the v_object that is the container geo - use a Geo-Struct compatible file instead


Examples

dv> a=v_make(load_pds("I03615038.cub",data=0))
struct, 6 elements
   x: 89870
   y: -38372
   w: 923
   h: 336
   lines: 272
   samples: 320
dv> dst=v_make(load_pds("mos.cub",data=0))
struct, 6 elements
   x: 52161
   y: -45641
   w: 109066
   h: 11263
   lines: 0
   samples: 0

Usage 1:

dv> contains=v_contains(img=a,dst=dst)
1

Usage 2:

dv> contains=v_contains(img="I03615038.cub",dst=dst)
1

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: 06-02-2009
Modified On: 07-29-2013

Personal tools