Welcome to the L3 Harris Geospatial documentation center. Here you will find reference guides and help documents.
﻿
>  Docs Center  >  IDL Reference  >  Regions of Interest  >  IDLanROI::Init

### IDLanROI::Init

IDLanROI::Init

The IDLanROI::Init function method initializes a region of interest object.

Note: Init methods are special life cycle methods, and as such cannot be called outside the context of object creation. This means that in most cases, you cannot call the Init method directly. There is one exception to this rule: If you write your own subclass of this class, you can call the Init method from within the Init method of the subclass.

## Syntax

Obj = OBJ_NEW( 'IDLanROI' [, X [, Y [, Z ]]] [, PROPERTY=value] )

or

Result = Obj->[IDLanROI::]Init( [X [, Y [, Z ]]] [, PROPERTY=value])     (In a lifecycle method only.)

Note: Keywords can be used in either form. They are omitted in the second form for brevity.

## Arguments

Note: The values specified by the X, Y, and Z arguments are used to initialize the value of the DATA property of the IDLanROI object.

### X

A vector providing the X components of the vertices for the region. If the Y and Z arguments are not specified, X must be a two-dimensional array with the leading dimension either 2 or 3 ([2,*] or [3,*]), in which case, X[0,*] represents the X values, X[1,*] represents the Y values, and X[2,*] represents the Z values. The value for this argument is double-precision floating-point if the DOUBLE keyword is set or the inputted value is of type DOUBLE. Otherwise, it is converted to single-precision floating-point.

### Y

A vector providing the Y components of the vertices. The value for this argument is double-precision floating-point if the DOUBLE keyword is set or the inputted value is of type DOUBLE. Otherwise, it is converted to single-precision floating-point.

### Z

A scalar or vector providing the Z component(s) of the vertices. If not provided, Z values default to 0.0. The value for this argument is double-precision floating-point if the DOUBLE keyword is set or the inputted value is of type DOUBLE. Otherwise, it is converted to single-precision floating-point.

## Keywords

Any property listed under IDLanROI Properties that contains the word “Yes” in the “Init” column of the properties table can be initialized during object creation using this method. To initialize the value of a property, specify the property name as a keyword set equal to the appropriate property value.

## Version History

 5.3 Introduced

© 2019 Harris Geospatial Solutions, Inc. |  Legal