Function iaseline

namespace:morph
page:iaseline

Synopse

Create a line structuring element.

  • B = iaseline(l=3, theta=0)
    • B: Structuring Element
    • l: Double
    • theta: Double (degrees, clockwise)

Description

iaseline creates a structuring element B that is a line segment that has an extremity at the origin, length l and angle theta (0 degrees is east direction, clockwise). If l=0, it generates the origin.

Examples

Example 1

01. from ia870 import iaseline, iaseshow, iatext, iadil
02. 
03. print iaseline()
04. 
05. iashow(iaseshow( iaseline(),'EXPAND'))
06. 
07. b1 = iaseline(4,45)
08. iashow(iaseshow(b1,'EXPAND'))
09. 
10. b2 = iaseline(4,-180)
11. iashow(iaseshow(b2,'EXPAND'))
12. 
13. a=iatext('Line')
14. b=iadil(a,b1)
15. iashow(b)
[[False False  True  True  True]]

Equation