You've already forked libopenshot
mirror of
https://github.com/OpenShot/libopenshot.git
synced 2026-03-02 08:53:52 -08:00
Protect sigma from widths that cause it to become 0 (make 1 the minimal sigma)
This commit is contained in:
@@ -62,6 +62,8 @@ std::shared_ptr<openshot::Frame> Outline::GetFrame(std::shared_ptr<openshot::Fra
|
||||
std::shared_ptr<QImage> 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
|
||||
|
||||
Reference in New Issue
Block a user