Skip to content

Commit 18ca834

Browse files
authored
Merge pull request #1756 from smx-smx/fix/FastNlMeansDenoisingMulti
fix crash in FastNlMeansDenoisingMulti
2 parents d6d460b + 9de6b4a commit 18ca834

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

src/OpenCvSharpExtern/photo.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ CVAPI(ExceptionStatus) photo_fastNlMeansDenoisingMulti(cv::Mat **srcImgs, int sr
3737
{
3838
BEGIN_WRAP
3939

40-
std::vector<cv::Mat> srcImgsVec;
40+
std::vector<cv::Mat> srcImgsVec(srcImgsLength);
4141
for (int i = 0; i < srcImgsLength; i++)
4242
srcImgsVec[i] = *srcImgs[i];
4343

test/OpenCvSharp.Tests/photo/PhotoTest.cs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,6 @@ public void FastNlMeansDenoising()
3232
Window.ShowImages(src, dst);
3333
}
3434

35-
/*
3635
[Fact]
3736
public void FastNlMeansDenoisingMulti()
3837
{
@@ -45,5 +44,5 @@ public void FastNlMeansDenoisingMulti()
4544

4645
if (Debugger.IsAttached)
4746
Window.ShowImages(src1, src2, dst);
48-
}*/
47+
}
4948
}

0 commit comments

Comments
 (0)