Skip to content

Commit 1450b4c

Browse files
predatfabiencastan
authored andcommitted
Apply suggestion from @fabiencastan
Co-authored-by: Fabien Castan <fabcastan@gmail.com>
1 parent 0cabece commit 1450b4c

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

src/software/utils/main_imageProcessing.cpp

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -525,13 +525,20 @@ void setupSteps(std::list<std::unique_ptr<ImageProcess>> & steps, const Processi
525525
#if ALICEVISION_IS_DEFINED(ALICEVISION_HAVE_OPENCV)
526526
if (pParams.bilateralFilter.enabled)
527527
{
528+
#if ALICEVISION_IS_DEFINED(ALICEVISION_HAVE_OPENCV)
528529
steps.push_back(std::make_unique<BilateralFilterProcess>(pParams.bilateralFilter.distance, pParams.bilateralFilter.sigmaColor, pParams.bilateralFilter.sigmaSpace));
530+
#else
531+
ALICEVISION_LOG_ERROR("OpenCV support is not enabled in this AliceVision build. Bilateral filter processing is unavailable and will be bypassed.");
532+
#endif
529533
}
530534
if (pParams.claheFilter.enabled)
531535
{
536+
#if ALICEVISION_IS_DEFINED(ALICEVISION_HAVE_OPENCV)
532537
steps.push_back(std::make_unique<ClaheFilterProcess>(pParams.claheFilter.tileGridSize, pParams.claheFilter.clipLimit));
533-
}
538+
#else
539+
ALICEVISION_LOG_ERROR("OpenCV support is not enabled in this AliceVision build. Clahe filter processing is unavailable and will be bypassed.");
534540
#endif
541+
}
535542
if (pParams.fillHoles)
536543
{
537544
steps.push_back(std::make_unique<FillHolesProcess>());

0 commit comments

Comments
 (0)