Neuralyzer::Transforms::V2::Examples::LineSubsegmentParams
Neuralyzer::Transforms::V2::Examples::LineSubsegmentParams
Parameters for line subsegment extraction. More…
#include <LineSubsegment.hpp>
Public Functions
| Name | |
|---|---|
| void | validate() Validate and clamp parameters in-place. |
Public Attributes
| Name | |
|---|---|
| float | start_position Start position as fraction of arc length (0.0 to 1.0). |
| float | end_position End position as fraction of arc length (0.0 to 1.0). |
| LineSubsegmentMethod | method Extraction method. |
| int | polynomial_order Polynomial order for Parametric method (1-9). |
| int | output_points Number of output points for Parametric method. |
| bool | preserve_original_spacing For Direct method: whether to preserve original point spacing. |
Detailed Description
struct Neuralyzer::Transforms::V2::Examples::LineSubsegmentParams;Parameters for line subsegment extraction.
This transform extracts a subsegment from a line between two fractional positions along its arc length. Two methods are available:
- Direct: Extracts points directly from the line, optionally preserving original spacing
- Parametric: Fits a parametric polynomial and resamples the subsegment uniformly
Example JSON: ```json
{ “start_position”: 0.2, “end_position”: 0.8, “method”: “Direct”, “polynomial_order”: 3, “output_points”: 50, “preserve_original_spacing”: true }
## Public Functions Documentation
### function validate
```cpp
void validate()
Validate and clamp parameters in-place.
Call once before batch processing to:
- Clamp positions to [0, 1]
- Clamp polynomial order to [1, 9]
- Clamp output points to [2, 1000]
Public Attributes Documentation
variable start_position
float start_position = 0.3f;Start position as fraction of arc length (0.0 to 1.0).
variable end_position
float end_position = 0.7f;End position as fraction of arc length (0.0 to 1.0).
variable method
LineSubsegmentMethod method = LineSubsegmentMethod::Parametric;Extraction method.
variable polynomial_order
int polynomial_order = 3;Polynomial order for Parametric method (1-9).
variable output_points
int output_points = 50;Number of output points for Parametric method.
variable preserve_original_spacing
bool preserve_original_spacing = true;For Direct method: whether to preserve original point spacing.
Updated on 2026-11-13 at 20:25:41 +0000