Skip to content

Commit 7aee8bd

Browse files
committed
contacts/detection: Fix formatting
1 parent c487d1a commit 7aee8bd

File tree

2 files changed

+11
-10
lines changed

2 files changed

+11
-10
lines changed

src/contacts/detection/algorithms/suppression.hpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,8 @@ void darken_around_maximas(const DenseBase<Derived> &in,
9494

9595
const T target = in(ny, nx) * f;
9696

97-
// Use min() against (in*factor) to prevent multi-maxima "stacking" darkness.
97+
// Use min() against (in*factor) to prevent multi-maxima "stacking"
98+
// darkness.
9899
out(ny, nx) = std::min(out(ny, nx), target);
99100
}
100101
}

src/contacts/detection/detector.hpp

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -137,21 +137,21 @@ 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 = casts::to_eigen(m_config.peak_suppression_radius);
140+
const Eigen::Index suppression_radius =
141+
casts::to_eigen(m_config.peak_suppression_radius);
141142
if (suppression_radius >= 1) {
142143
const T suppression_factor = m_config.peak_suppression_factor;
143-
suppression::darken_around_maximas(
144-
m_img_blurred,
145-
m_maximas,
146-
suppression_radius,
147-
suppression_factor,
148-
m_img_span
149-
);
144+
suppression::darken_around_maximas(m_img_blurred,
145+
m_maximas,
146+
suppression_radius,
147+
suppression_factor,
148+
m_img_span);
150149

151150
span_src = &m_img_span;
152151
}
153152

154-
// Iterate over the maximas and start building clusters (on suppressed image if enabled)
153+
// Iterate over the maximas and start building clusters (on suppressed image if
154+
// enabled)
155155
for (const Point &point : m_maximas) {
156156
Box cluster = cluster::span(*span_src, point, athresh, dthresh);
157157

0 commit comments

Comments
 (0)