Interface IPatternDescriptor<T>
The interface to define a PatternDescriptor for pattern recognition.
Namespace: Holoride.ElasticSDK
Assembly: Holoride.ElasticSDK.Library.Runtime.dll
Syntax
public interface IPatternDescriptor<T>
Type Parameters
Name | Description |
---|---|
T |
Properties
Properties
Gets or sets additional properties. These properties can differ generically for each descriptor pattern.
Declaration
PatternDescriptorProperties<T> Properties { get; set; }
Property Value
Type | Description |
---|---|
PatternDescriptorProperties<T> |
Methods
ComputeEnergy(T)
Defines how the energy between two samples is computed.
Declaration
float ComputeEnergy(T sampleDescriptor)
Parameters
Type | Name | Description |
---|---|---|
T | sampleDescriptor | The descriptor the energy is computed with. |
Returns
Type | Description |
---|---|
float | The resulting energy value. |
SampleFirstLevel(Spline, double, double)
Defines how the first pattern is sampled from the data.
Declaration
void SampleFirstLevel(Spline spline, double distance, double resolution)
Parameters
Type | Name | Description |
---|---|---|
Spline | spline | The spline to sample. |
double | distance | The spline distance where to sample at. |
double | resolution | The resolution the spline is sampled. |
SampleNextLevel(int, Func<int, List<T>>)
Defines how subsequent levels are created from the former level.
Declaration
void SampleNextLevel(int level, Func<int, List<T>> getNeighborhood)
Parameters
Type | Name | Description |
---|---|---|
int | level | The level to sample from. |
Func<int, List<T>> | getNeighborhood | Value lookup. |