drawshape

From DavinciWiki
Jump to: navigation, search


64-bit SafeYes

Description

Draw a shape at each "on" point in an image

Arguments and Return Values

Arguments: A numeric array, a shape type and an ignore value

Return Value: A numeric array with shapes drawn

Usage

Syntax: drawshape(obj = VAR [, shape = "cross"/"box"/"circle"] [, ignore = VAL])

For each point in the input image (band 1 only), that is greater than zero and not equal to the ignore value, a shape is draw centered on that point, with a radius/size equal to the value of the point.

Examples

dv> a = clone(0,100,100)
100x100x1 array of int, bsq format [40,000 bytes]

dv> a[30,40] = 3
3

dv> a[60,80] = 5
5

dv> b = drawshape(a,shape="circle")
100x100x1 array of byte, bsq format [10,000 bytes]

Images

drawshape.png

DavinciWiki Mini-Nav Bar

Contents


Contact Developers

  • davinci-dev [AT] mars.asu.edu

All other topics

  • See navigation on the left


Recent Core Changes

Modified On: 07-06-2009

Personal tools