A service that contains registered algorithms for registering geometry such that the input is adjusted to match the output.
More...
|
|
String | m_id |
| | The unique string identifier of this registration engine.
|
|
TranslatedString | m_name |
| | The translated display name of this registration engine.
|
A service that contains registered algorithms for registering geometry such that the input is adjusted to match the output.
See https://en.wikipedia.org/wiki/Point-set_registration.
GeometryRegistration serves as both a service manager (discovering and storing available registration engines) and a base class that concrete engines inherit from to provide their specific alignment algorithm (e.g., ICP variants).
- See also
- Geometry, GeometryFilter
Definition at line 72 of file GeometryRegistration.h.
◆ GeometryRegistration()
◆ AddAvailableRegistrationEngine()
◆ AvailableRegistrationEngines()
Returns the global dictionary of all available registration engines, keyed by engine ID.
- Returns
- A const reference to the dictionary mapping engine IDs to their GeometryRegistration pointers.
◆ canRunRegistration()
Returns whether the registration engine can run given the target parameters.
Override to impose preconditions (e.g., minimum point count). Default returns true.
- Parameters
-
| [in] | parameters | The registration parameters to validate. |
- Returns
- True if this engine can handle the given parameters, false otherwise.
Definition at line 151 of file GeometryRegistration.h.
◆ defaultRegistrationArguments()
◆ ExecuteRegistration()
| void GeometryRegistration::ExecuteRegistration |
( |
const JSONNode & | active_filters, |
|
|
const Buffer< Model > & | models_to_register, |
|
|
const Buffer< Model > & | reference_models, |
|
|
LogPtr | log, |
|
|
const void * | lock ) |
|
static |
Executes a registration pass using the specified filters, aligning the given models to the reference models.
- Parameters
-
| [in] | active_filters | JSON node describing which registration engines and options to use. |
| [in] | models_to_register | The models whose geometry will be transformed to align with the reference. |
| [in] | reference_models | The fixed reference models to align against. |
| [in] | log | Log target for progress and diagnostic output. |
| [in] | lock | Optional mutex/lock pointer for thread-safe access. |
◆ FinishRegistration()
Applies the final computed registration transform back to the geometry.
- Parameters
-
| [in] | transform | The original world-space transform of the geometry. |
| [in] | geo | The geometry to update with the registration result. |
| [in] | params | The registration parameters containing the computed alignment. |
◆ GetAvailableDescriptions()
Collects and returns the default description/option sets from all available registration engines.
- Returns
- A buffer of GeometryRegistrationDescription objects, one per available engine.
◆ PrepareForRegistration()
Extracts and prepares geometry vertices from a Geometry object for use in registration.
Populates the registration parameters with the vertex data from the given geometry, applying the provided transform.
- Parameters
-
| [in] | transform | The world-space transform of the geometry. |
| [in] | geo | The geometry to extract vertices from. |
| [in] | params | The registration parameters to populate. |
| [in] | is_reference | Whether this geometry is the fixed reference (true) or a movable source (false). |
◆ RegistrationCommand()
Creates a managed design command for performing registration with the given reference and filter.
- Parameters
-
| [in] | reference | The UUID of the reference model or object. |
| [in] | filter | The registration description specifying engine and options. |
- Returns
- A DynamicPointer to the created ManagedDesignCommand.
◆ registrationID()
| const String & GeometryRegistration::registrationID |
( |
| ) |
const |
|
inlinenodiscard |
Returns the unique string identifier of this registration engine.
- Returns
- A const reference to the engine ID.
Definition at line 169 of file GeometryRegistration.h.
References m_id.
◆ registrationName()
Returns the translated display name of this registration engine.
- Returns
- A const reference to the translated name.
Definition at line 163 of file GeometryRegistration.h.
References m_name.
◆ runRegistration()
Runs the registration algorithm on the provided parameters.
Subclasses must implement this to perform their specific point-set registration.
- Parameters
-
| [in] | parameters | The registration parameters including reference and movable point sets. |
- Returns
- True if registration succeeded, false otherwise.
Implemented in PCLRegistration.
◆ ToCommandString()
Serializes a set of registration descriptions into a command string representation.
- Parameters
-
| [in] | descriptions | The registration descriptions to serialize. |
- Returns
- A String encoding of the descriptions suitable for command storage or transmission.
The documentation for this class was generated from the following file: