ps move tracker: set max of radii to 50%

It makes no sense to have a larger radius than half of the image size
This commit is contained in:
Megamouse 2024-12-21 12:12:14 +01:00
parent 1a479e9bda
commit ec7f50d925
3 changed files with 6 additions and 6 deletions

View file

@ -993,8 +993,8 @@ public:
m_tracker.set_saturation_threshold(gem_num, config->saturation_threshold);
}
m_tracker.set_min_radius(static_cast<f32>(g_cfg_move.min_radius.get() / g_cfg_move.min_radius.max));
m_tracker.set_max_radius(static_cast<f32>(g_cfg_move.max_radius.get() / g_cfg_move.max_radius.max));
m_tracker.set_min_radius(static_cast<f32>(g_cfg_move.min_radius) / 100.0f);
m_tracker.set_max_radius(static_cast<f32>(g_cfg_move.max_radius) / 100.0f);
// Process camera image
m_tracker.process_image();