Tag: 带通滤波器

带通滤波器组

我已经实现了本文中描述的一组定向带通滤波器。 请参阅“ 2.1预处理 ”一节中的最后一段。 我们选择了12个不重叠的滤镜,分析了12个不同的方向,相对于15°相互旋转。 我有以下问题, 滤波器组应该生成12个滤波图像。 但是,实际上,我只有03输出,如下面的快照所示, 源代码: 以下是完整的VS2013解决方案作为压缩文件。 这是源代码中最相关的部分, public class KassWitkinFunction { /* * tx = centerX * cos * ty = centerY * sin * * u* = cos . (u + tx) + sin . (v + ty) * v* = – sin . (u + tx) + cos . […]

带通滤波器不能旋转超过90度

我试图实现以下FFTfilter内核: 缺少此公式,sqrt下有两个正方形。 源代码 public partial class Form1 : Form { public Form1() { InitializeComponent(); Bitmap image = DataConverter2d.ReadGray(StandardImage.LenaGray); Array2d dImage = DataConverter2d.ToDouble(image); int newWidth = Tools.ToNextPowerOfTwo(dImage.Width) * 2; int newHeight = Tools.ToNextPowerOfTwo(dImage.Height) * 2; double n = 6; double f0 = 0.5; double theta = 60; double a = 0.4; Array2d kernel2d = CustomFft(newWidth, newHeight, […]