我正在尝试在emgu中实现这样的DoG过滤器:
Image <Gray, byte> temp = inImage;
Image <Gray, byte> temp2 = inImage;
temp1._SmoothGaussian(1);
temp2._SmoothGaussian(3)
result= temp2.Sub(temp);
result.ToBitmap().Save("DoG.bmp");
问题是结果图像都是黑色的(我检查了temp1和temp2,它们是不同的,都正确应用了高斯滤波器)
你有什么提示,哪里可能有问题?
答案 0 :(得分:0)
也许差异很小,所以你不能直接想象它。 (如果差异在0到10之间,则会非常暗,所有像素看起来都是黑色。)
如果你想看得很好,你应该调整0到255之间的差异图像。