Feature Extractors
2D point feature extraction.
ConvexHullFeatureExtractor
Bases: FeatureExtractor
Convex hull feature extractor. Computes the 2D centroid and area of the bounding polygon (convex hull).
FeatureExtractor
Bases: ABC
Feature extractor abstract base class. Subclasses must implement the call method.
__call__(points)
abstractmethod
Extract the feature values from the provided points.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
points
|
ndarray
|
A numpy array of shape (n_points, 2) containing the image points. |
required |
Returns:
| Type | Description |
|---|---|
ndarray
|
A numpy array of shape (n_values, m) containing the \(m\) feature values. |
Source code in src/compas_camcal/clustering/extractors.py
17 18 19 20 21 22 23 24 25 26 27 28 | |
FeatureExtractorGroup(*feature_extractors)
Bases: FeatureExtractor
Feature extractor group class. Composes multiple feature extractors into a single feature extractor.
Initialize the feature extractor group.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
feature_extractors
|
Tuple[FeatureExtractor]
|
FeatureExtractor objects. |
()
|
Source code in src/compas_camcal/clustering/extractors.py
36 37 38 39 40 41 42 43 | |
PlanarHomographyFeatureExtractor(reference)
Bases: FeatureExtractor
Planar homography feature extractor. Computes the homography between the points and a planar reference.
Source code in src/compas_camcal/clustering/extractors.py
78 79 80 81 | |