This commit is contained in:
Ayzen
2026-05-06 16:08:24 +03:00
parent cb4ba861d9
commit cf3f3cbd67
24 changed files with 670 additions and 247 deletions
@@ -15,4 +15,15 @@ class GprProcessor final : public ProcessorInterface {
) -> ipc::ResultCollection override;
};
class LegacyGprProcessor final : public ProcessorInterface {
public:
[[nodiscard]] auto name() const -> std::string override;
[[nodiscard]] auto process_collection(
const config::RunConfig& run_config,
const ipc::PreprocessedCollection& collection,
std::span<const ipc::PreprocessedCollection> previous_collections,
const ProcessingLiveConfig& live_config
) -> ipc::ResultCollection override;
};
} // namespace radar::processing
@@ -750,7 +750,7 @@ void apply_legacy_motion_correction(
return results;
}
if (live_config.gpr_algorithm == GprAlgorithm::LegacyExtended) {
if (live_config.legacy_gpr_mode == LegacyGprMode::Extended) {
const auto [regions, smoothed_accumulator] = extended_legacy_find_regions(
grid,
peaks_by_pair,
@@ -35,10 +35,20 @@ auto GprProcessor::process_collection(
std::span<const ipc::PreprocessedCollection> previous_collections,
const ProcessingLiveConfig& live_config
) -> ipc::ResultCollection {
if (live_config.gpr_algorithm != GprAlgorithm::Backprojection) {
return process_legacy_gpr(run_config, collection, previous_collections, live_config);
}
return process_backprojection_gpr(run_config, collection, previous_collections, live_config);
}
auto LegacyGprProcessor::name() const -> std::string {
return "legacy_gpr";
}
auto LegacyGprProcessor::process_collection(
const config::RunConfig& run_config,
const ipc::PreprocessedCollection& collection,
std::span<const ipc::PreprocessedCollection> previous_collections,
const ProcessingLiveConfig& live_config
) -> ipc::ResultCollection {
return process_legacy_gpr(run_config, collection, previous_collections, live_config);
}
} // namespace radar::processing