Threshold¶
- class ThresholdDetector(min_power, normalize=True, peak_detection=True)[source]¶
Bases:
RadarDetectorExtract points by a power threshold.
- Parameters:
min_power (
float) – Minmally required point power.normalize (
bool) – Normalize the power during detection, so that min_power becomes a relative value betwee zero and one. Enabled by default.peak_detection (
bool) – Run a peak detection algorithm to only extract points at power peaks. Enabled by default.
- classmethod Deserialize(process)[source]¶
Deserialize an object’s state.
Objects cannot be deserialized directly, instead a
Factorymust be instructed to carry out the deserialization process.- Parameters:
process (
DeserializationProcess) – The current stage of the deserialization process. This object is generated by theFactoryand provides an interface to deserialization methods supporting multiple backends.- Return type:
- Returns:
The deserialized object.
- detect(cube)[source]¶
Generate a point cloud from a radar cube.
- Parameters:
cube (
RadarCube) – The radar cube to be processed.- Return type:
Returns: The resulting (usually sparse) point cloud.
- serialize(process)[source]¶
Serialize this object’s state.
Objects cannot be serialized directly, instead a
Factorymust be instructed to carry out the serialization process.- Parameters:
process (
SerializationProcess) – The current stage of the serialization process. This object is generated by theFactoryand provides an interface to serialization methods supporting multiple backends.- Return type:
- property min_power: float¶
Minimally required point power.
Returns: Power (linear).
- Raises:
ValueError – On powers smaller or equal to zero.