修改卷积

This commit is contained in:
xhm\HP 2024-06-28 09:15:00 +08:00
parent 3f9d951e80
commit 48e6945bd6

View File

@ -106,9 +106,9 @@ namespace HisenceYoloDetection
Cv2.ImWrite(savePath3, thr2); Cv2.ImWrite(savePath3, thr2);
// 创建卷积核 // 创建卷积核
Mat filter1 = new Mat(5, 5, MatType.CV_32F, new Scalar(0)); Mat filter1 = new Mat(15, 15, MatType.CV_32F, new Scalar(0));
filter1.Row(2).SetTo(new Scalar(0.025)); filter1.Row(7).SetTo(new Scalar(0.025));
filter1.Col(2).SetTo(new Scalar(0.025)); filter1.Col(7).SetTo(new Scalar(0.025));
// 应用卷积 // 应用卷积
Mat final_result1 = new Mat(); Mat final_result1 = new Mat();