- iOS/Objective-C 元类和类别
- objective-c - -1001 错误,当 NSURLSession 通过 httpproxy 和/etc/hosts
- java - 使用网络类获取 url 地址
- ios - 推送通知中不播放声音
我目前正在阅读这篇论文:Approximations in the HMAX Model ,我对使用 Box 滤波器逼近 gabor 滤波器特别感兴趣。
去年我开发了一个合成指纹生成器(你可以在这里看到其中的一些 How to convolve an image with different gabor filters adjusted according to the local orientation and density using FFT? )。
但是生成器中最大的缺陷是应用 gabor 过滤器所需的时间,我一直在研究如何实现过滤器的可分离版本,但由于数学不是我的强项,所以失败了。现在这似乎比可分离过滤器更符合我的需要,因为它似乎更快,而且结果似乎足以满足我的需要。但是我不明白如何从该论文的等式中实现 gabor 的框过滤。
流程如下:
In this section we attempt to perform a grosser approximation of the filter to achieve significantly higher efficiency. Currently, the S1 layer in the model, consists of simple line detectors that are modeled using oriented Gabor filters. However, oriented lines can be represented using much simpler represented such as box filters as shown in Figure 5. These filters have very sparse derivatives allowing us to compute convolution quite efficiently. The convolution of the image with the filters B(x, y) can be efficiently computed using the filter’s derivatives as follows.
The second derivative of the box filter consists of just impulses and therefore needs to be evaluated at only four points for every position in the image. The integral image can also be efficiently computed using single pass algorithm as outlined in [5, 1]. The cost of convolution using this approximation is O(N2c), c=4. Unlike other approximations, the computational cost does not depend on the size of the filter at all!.
这些术语是什么?那是图像积分的积分吗?很抱歉,如果这是我问的 super 基本的东西,但老实说我不知道 :(。
最佳答案
您问题中的 rhs 方程是卷积的无穷小描述 - 您有卷积运算符 "* " 应用于图像的 2D 子范围 - 2d 子范围表示为 2D不可缺少的。离散描述类似,但二维子范围使用求和运算符使用 sigma 符号“Σ”表示。它不是二维积分,而是作为“ΣΣ”应用(我不知道如何在此处输入数学符号)。
卷积的简单实现是使用 2 个循环 - 在图像的每个点中,你将内核值乘以该点和相邻点相加 -
P(x+c/2) = P(x)*C(1)+P(x+1)*C(2)...+P(x+c)*C(c )(c 是内核的大小)。 该过程类似于长乘法或多项式乘法。
基本上卷积可以以多种方式应用,一种方式是直接的(求和),或者通过转换到其他空间(快速傅立叶变换)- Convolution Theorem .
FFT 时间为 O(NlogN)。如果核的大小很大,使用 FFT 进行卷积是有效的。否则,如果内核大小较小:O(c) < O(logN) - 卷积速度更快。由于过滤器大小为 4 - 使用直接卷积。
您还可以并行卷积(通过 cuda、open-mp 等...)
关于image - 定向 gabor 滤波器的盒式滤波器近似,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/23851974/
我尝试创建一个 Gabor 过滤器。我们都知道这种过滤器比任何其他过滤器都复杂,因为它具有更复杂的特征,例如具有不同的尺度和方向。Gabor滤波器的方程为: 要创建具有特定比例和方向的 Gabor 滤
我有以下 gabor 过滤器来提取图像纹理特征.. a=imread('image0001.jpg'); a=double(a); a=a-mean(a(:)); [r,c,l]=size(a);
如何设计用于模式识别的 Gabor 滤波器。我就是想不通。 最佳答案 我提供的链接将清除您关于 GABOR FILTER 的基础知识,并让您开始模式识别 Basics of gabor filter
This问题很好地描述了 gabor 过滤器系列及其应用。但是,没有关于滤波器的波长(空间频率)的描述。 gabor 小波的创建在以下 for 循环中完成: for v = 0 : 4 for
Here我们有 Gabor 过滤器的空间域实现。但是,我需要在频域中实现 Gabor 滤波器 for performance reasons. 我找到了 Frequency Domain equati
我使用 lire, java对于图像检索项目,我想为输入图像的每个像素计算 gabor 小波的振幅 ref here . lire 库中的默认函数返回一个下采样的特征向量。我想要的是 gabor 小波
我的目标是对汽车类型(轿车、SUV、掀背车)进行分类,之前我使用角特征进行分类,但效果不太好,所以现在我正在尝试 Gabor 特征。 code from here 现在提取特征,假设当我给出图像作为输
我目前正在使用 HOG、LBP 和 Gabor 作为特征提取来进行人物检测。但是,当我使用gabor特征提取时,虽然准确率很高,但检测时间很长。我正在从这里实现 gabor 特征提取代码: Gabor
我计算了 8 个 Gabor 滤波器,Theta 旋转 m*PI/8。 作为 OpenCv cv2.getGaborKernel 输入的 Gabor 内核参数:ksize = 11, theta =
我想在将方形采样图像转换为六边形采样图像后使用 Gabor 滤波器作为插值方法。 我可以在六角采样图像中使用普通的 Gabor 滤波器实现吗?或者我应该修改代码吗?如果是,那么我应该为六边形采样图像修
我正在尝试实现一个用于纹理图像分割的 gabor 过滤器。我在 MATLAB 中这样做并引用了 paper - A level set and Gabor-based Active Contour A
我是图像处理的新手。我想知道如何在具有 12 个不同方向(例如 0、15、30、45 到 165)的图像上应用 gabor 滤波器。我想将此 gabor 滤波器应用于 12 个方向并且必须显示每个方向
我正在研究用于特征提取的超像素。我已经成功地将超像素功能应用于图像。 A = imread('kobi.png'); [L,N] = superpixels(A,5); figure BW = bou
我正在尝试对图像执行 gabor 过滤器。 %% Read clear all; close all; clc; I=imread('test.png'); imshow(I); %% Crop I2
我如何在图像上应用这些 Gabor 滤波器小波? close all; clear all; clc; % Parameter Setting R = 128; C = 128; Kmax = pi
我正在尝试创建一个称为 Gabor patch 的二维图像可变大小。 Gabor 补丁最好被认为是二维正弦和二维高斯的卷积。 下面是用于生成代码的函数。代码移植自 this tutorial对于 Ma
我目前正在阅读这篇论文:Approximations in the HMAX Model ,我对使用 Box 滤波器逼近 gabor 滤波器特别感兴趣。 去年我开发了一个合成指纹生成器(你可以在这里看
我是 OpenCV 和 gabor 过滤器的新手,只想获得这样的 gabor 小波: 我在 Java 中使用这个 OpenCV 代码: double sigma_bar = 40; double th
我想知道当将 gabor 滤波器应用于图像以进行特征提取时,特征向量的构成是什么?我想要用于面部表情分类的特征向量。我有 gabor 过滤器的代码,我也得到了过滤后的图像,但我对特征向量感到困惑。 最
我正在尝试构建一个带有一些转换层的 CNN,其中层中一半的过滤器是固定的,另一半在训练模型时是可学习的。但我没有找到任何相关信息。 我正在尝试做的与他们在这篇论文中所做的相似https://arxiv
我是一名优秀的程序员,十分优秀!