SpaceFillingCurves
Helpers & Utilities · AiDotNet.ComputerVision.Segmentation.PointCloud
The built-in serialization orders and a name registry for custom ones.
For Beginners
This is the list of curve types the library knows how to rebuild from a saved file. The standard ones are always there; if you write your own curve, add it here.
How It Works
A model stores its serialization orders by Name so that saving,
loading and cloning rebuild the same curves. The four orders of the PTv3 paper are always
available; a custom ISpaceFillingCurve must be registered before a model that uses
it is saved, cloned or loaded. A registered name always resolves to one algorithm: registering
a curve of a different type under a taken name, including a built-in one, throws.
Properties
| Property | Summary |
|---|---|
ISpaceFillingCurve Hilbert { get; } |
The Hilbert curve (hilbert). |
ISpaceFillingCurve HilbertTransposed { get; } |
The x/y-transposed Hilbert curve (hilbert-trans). |
ISpaceFillingCurve ZOrder { get; } |
The Z-order curve (z). |
ISpaceFillingCurve ZOrderTransposed { get; } |
The x/y-transposed Z-order curve (z-trans). |
Methods
| Method | Summary |
|---|---|
ISpaceFillingCurve Get(PointSerializationOrder order) |
The curve for a built-in PointSerializationOrder. |
ISpaceFillingCurve Resolve(string name) |
Looks up a registered curve by name. |
ISpaceFillingCurve[] PaperOrders() |
The four orders of the PTv3 base configuration and of Sonata, in the paper’s order: z, z-trans, hilbert, hilbert-trans. |
bool IsRegistered(ISpaceFillingCurve curve) |
Whether curve is registered, so a saved model can rebuild it by name. |
void Register(ISpaceFillingCurve curve) |
Registers a curve so models referring to its name can be rebuilt. |