Neuralyzer::Transforms::V2::Examples::LinePointExtractionParams
Neuralyzer::Transforms::V2::Examples::LinePointExtractionParams
Parameters for line point extraction. More…
#include <LinePointExtraction.hpp>
Public Functions
| Name | |
|---|---|
| void | validate() Normalize and clamp parameters in-place. |
Public Attributes
| Name | |
|---|---|
| float | position Position along the line (0.0–1.0) where 0 is start, 1 is end. |
| LinePointExtractionMethod | method Extraction method. |
| int | polynomial_order Polynomial order for Parametric method (1–9). |
| bool | use_interpolation Whether to interpolate between points (Direct method) vs use nearest. |
Detailed Description
struct Neuralyzer::Transforms::V2::Examples::LinePointExtractionParams;Parameters for line point extraction.
This transform extracts a point at a specified fractional position along a line. The extraction can use direct distance-based interpolation or parametric polynomial fitting for smoother results.
Example JSON: ```json
{ “position”: 0.5, “method”: “Direct”, “polynomial_order”: 3, “use_interpolation”: true }
## Public Functions Documentation
### function validate
```cpp
void validate()
Normalize and clamp parameters in-place.
Call once before batch processing to:
- Clamp position to [0, 1]
- Clamp polynomial_order to valid range
Public Attributes Documentation
variable position
float position = 0.5f;Position along the line (0.0–1.0) where 0 is start, 1 is end.
variable method
LinePointExtractionMethod method = LinePointExtractionMethod::Direct;Extraction method.
variable polynomial_order
int polynomial_order = 3;Polynomial order for Parametric method (1–9).
variable use_interpolation
bool use_interpolation = true;Whether to interpolate between points (Direct method) vs use nearest.
Updated on 2026-11-13 at 20:25:41 +0000