tf = inShape(shp,qx,qy)
returns logical 1 (true) values for the 2-D
query points (qx,qy) that are within 2-D alpha shape
shp. Otherwise, inShape returns values of
logical 0 (false). The qx
and qy arguments are numeric arrays whose corresponding elements
specify the (x,y) query point coordinates.
tf = inShape(shp,qx,qy,qz)
tests whether the 3-D query points (qx,qy,qz) are within 3-D
alpha shape shp.
tf = inShape(shp,QP)
specifies the 2-D or 3-D query point coordinates in a matrix with 2 or 3
columns.
tf = inShape(___,RegionID)
tests whether the query points are within a specific region of the alpha shape,
using any of the previous syntaxes. RegionID is the ID for the
region and 1 ≤ RegionID ≤
numRegions(shp).
[tf,ID]
= inShape(___)
also returns the IDs for the regions in the alpha shape that contain the query
points. ID is NaN for query points that are
not in the alpha shape.
Alpha shape, specified as an alphaShape object.
For more information, see alphaShape.
Example: shp = alphaShape(x,y) creates a 2-D alphaShape object
from the (x,y) point coordinates.
Query point x-coordinates, specified as a numeric array.
Data Types: double
Query point y-coordinates, specified as a numeric array.
Data Types: double
Query point z-coordinates, specified as a numeric array.
Data Types: double
Query point coordinates, specified as a matrix with two columns (2-D) or a
matrix with three columns (3-D).
For 2-D, the columns of QP represent
x and y coordinates,
respectively.
For 3-D, the columns of QP represent
x, y, and
z coordinates, respectively.
Data Types: double
ID number for region in alpha shape, specified as a positive
integer scalar between 1 and numRegions(shp).
An alpha shape can contain several smaller regions, depending
on the point set and parameters. Each of these smaller regions is
assigned a unique RegionID, which numbers the regions
from the largest area or volume to the smallest. For example, consider
a 3-D alpha shape with two regions. The region with the largest volume
has a RegionID of 1, and the smaller region has
a RegionID of 2.
Example: shp.RegionThreshold = area(shp,numRegions(shp)-2); suppresses
the two smallest regions in 2-D alpha shape shp.
Status of the query points, returned as a logical array. The size of
tf is equal to the size of the inputs that specify
the query points (qx, qy,
qz, or QP).
inShape returns logical 1
(true) values for points that are within the alpha
shape or exactly on the boundary.
IDs of regions containing query points, returned as a numeric array.
ID is the same size as tf.
You clicked a link that corresponds to this MATLAB command:
Run the command by entering it in the MATLAB Command Window.
Web browsers do not support MATLAB commands.
Sélectionner un site web
Choisissez un site web pour accéder au contenu traduit dans votre langue (lorsqu'il est disponible) et voir les événements et les offres locales. D’après votre position, nous vous recommandons de sélectionner la région suivante : .
Vous pouvez également sélectionner un site web dans la liste suivante :
Comment optimiser les performances du site
Pour optimiser les performances du site, sélectionnez la région Chine (en chinois ou en anglais). Les sites de MathWorks pour les autres pays ne sont pas optimisés pour les visites provenant de votre région.