Function Index
RegionBorder
RegionBorder[
pts
]
returns a list of integer valued coordinate pairs of the border points of a region defined by the list of points
pts
.
The option
ConnectivityNumber
may be used to select either 4- or 8-connectivity of the pixel neighborhoods.
The default setting is
ConnectivityNumber
→4.
See also User's Guide
7.5
.
Modified in Version 2.
Example
This loads the package.
In[1]:=
This defines a simple closed region.
In[2]:=
This defines a closed region as a list of point positions.
In[3]:=
Out[3]=
This returns the border pixels using the default 4-connected neighborhoods.
In[4]:=
In[5]:=
Out[5]=
© 2009 Wolfram Research, Inc.
•
Terms of Use
•
Privacy Policy
Sign up for our newsletter: