From 344dc4a4b90c39a4ffcafe4d09ffac353feea580 Mon Sep 17 00:00:00 2001 From: Jonathan Thomas Date: Thu, 13 Mar 2025 13:25:27 -0500 Subject: [PATCH] Protect sigma from widths that cause it to become 0 (make 1 the minimal sigma) --- src/effects/Outline.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/effects/Outline.cpp b/src/effects/Outline.cpp index 6ea0d3b4..38f14db9 100644 --- a/src/effects/Outline.cpp +++ b/src/effects/Outline.cpp @@ -62,6 +62,8 @@ std::shared_ptr Outline::GetFrame(std::shared_ptr frame_image = frame->GetImage(); int sigmaValue = widthValue / 3; + if (sigmaValue < 1) + sigmaValue = 1; cv::Mat cv_image = QImageToBGRACvMat(frame_image); // Extract alpha channel for the mask