Skip to content

Commit 204804b

Browse files
qzedCopilot
andauthored
contacts/detection/detector: Fix missing to_eigen cast.
Co-authored-by: Copilot <[email protected]>
1 parent 907fda0 commit 204804b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/contacts/detection/detector.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,7 @@ class Detector {
137137
// Create a suppressed copy used only for cluster spanning
138138
const Image<T> *span_src = &m_img_blurred;
139139

140-
const Eigen::Index suppression_radius = m_config.peak_suppression_radius;
140+
const Eigen::Index suppression_radius = casts::to_eigen(m_config.peak_suppression_radius);
141141
if (suppression_radius >= 1) {
142142
const T suppression_factor = m_config.peak_suppression_factor;
143143
suppression::darken_around_maximas(

0 commit comments

Comments
 (0)