drawshape

From DavinciWiki
(Difference between revisions)
Jump to: navigation, search
 
(2 intermediate revisions by 2 users not shown)
Line 6: Line 6:
 
Return Value: A numeric array with shapes drawn
 
Return Value: A numeric array with shapes drawn
 
|
 
|
Syntax: drawshape(obj=VAR, shape=["cross"/"box"/"circle"], ignore=VAL)
+
[[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.
 
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.
Line 30: Line 30:
 
[[category:Functions]]
 
[[category:Functions]]
 
[[category:Davinci Core]]
 
[[category:Davinci Core]]
 +
[[category:Miscellaneous]]
 +
[[category:64-bit]]

Latest revision as of 10:40, 6 July 2009



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