Commit 4d732b0
fix(imageProcessing): fix guard placement for bilateralFilter and nlmFilter OpenCV checks
The `#if ALICEVISION_HAVE_OPENCV` guards were incorrectly placed
*before* the
`if (pParams.*.enabled)` runtime checks, causing the entire block
(including
the enabled-check) to be silently skipped at compile time when OpenCV is
absent.
- Move the preprocessor guard *inside* the runtime `if` block for
bilateralFilter
and nlmFilter, so the enabled-check is always compiled and evaluated
- Add an `#else` branch for nlmFilter that logs an explicit error when
OpenCV
is unavailable and the filter is requested, instead of silently bypassing it1 parent 1450b4c commit 4d732b0
1 file changed
+3
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
522 | 522 | | |
523 | 523 | | |
524 | 524 | | |
525 | | - | |
526 | 525 | | |
527 | 526 | | |
528 | 527 | | |
| |||
547 | 546 | | |
548 | 547 | | |
549 | 548 | | |
550 | | - | |
551 | 549 | | |
| 550 | + | |
552 | 551 | | |
553 | 552 | | |
554 | 553 | | |
| 554 | + | |
| 555 | + | |
555 | 556 | | |
556 | 557 | | |
557 | 558 | | |
| |||
0 commit comments