Closed N-Dekker closed 5 months ago
FYI, I'm still considering to declare those constant variables "static constexpr
", as was recommended by C++ Weekly With Jason Turner, Episode 312, "Stop Using constexpr
(And Use This Instead!)"
Update, March 12, 2024: With the force-push that I just did, the pull request does declare those constant variables "static constexpr
"!
Added a local variable,
neighborhoodSize
, to clarify that the size of the neighborhood is in these cases always simply 3^N for an N-dimensional image.Following Scott Meyers, Effective Modern C++ (2014), "Use
constexpr
whenever possible" and C++ Core Guidelines, "Useconstexpr
for values that can be computed at compile time"