- android - 多次调用 OnPrimaryClipChangedListener
- android - 无法更新 RecyclerView 中的 TextView 字段
- android.database.CursorIndexOutOfBoundsException : Index 0 requested, 光标大小为 0
- android - 使用 AppCompat 时,我们是否需要明确指定其 UI 组件(Spinner、EditText)颜色
我是图像处理的新手。我想知道如何在具有 12 个不同方向(例如 0、15、30、45 到 165)的图像上应用 gabor 滤波器。我想将此 gabor 滤波器应用于 12 个方向并且必须显示每个方向的输出。我的输入是视网膜图像,方向输出应该是应用 gabor 过滤器后微调的视网膜图像。我该怎么做?
%code for gabor filter
I = getimage();
I=I(:,:,2);
lambda = 8;
theta = 0;
psi = [0 pi/2];
gamma = 0.5;
bw = 1;
N = 12;
img_in = im2double(I);
%img_in(:,:,2:3) = []; % discard redundant channels, it's gray anyway
img_out = zeros(size(img_in,1), size(img_in,2), N);
for n=1:N
gb = gabor_fn(bw,gamma,psi(1),lambda,theta)...
+ 1i * gabor_fn(bw,gamma,psi(2),lambda,theta);
% gb is the n-th gabor filter
img_out(:,:,n) = imfilter(img_in, gb, 'symmetric');
% filter output to the n-th channel
%theta = theta + 2*pi/N;
theta = 15 * n; % i wrote this because my angles are multiples of 15
% next orientation
end
figure(1);
imshow(img_in);
title('input image');
figure(2);
img_out_disp = sum(abs(img_out).^2, 3).^0.5;
%default superposition method, L2-norm
img_out_disp = img_out_disp./max(img_out_disp(:));
% normalize
imshow(img_out_disp);
title('gabor output, L-2 super-imposed, normalized');
我的输入图像是
我的输出图像是
我如何通过应用 gabor 过滤器将我的图像定位在 12 个不同的方向
我应该得到视网膜图像的输出,但我得到的输出图像是
最佳答案
你应该添加这两行:
...
% gb is the n-th gabor filter
img_out(:,:,n) = imfilter(img_in, gb, 'symmetric');
figure;
imshow(img_out(:,:,n));
...
关于matlab - 将 gabor 过滤器应用于图像,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/19809156/
我尝试创建一个 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
我是一名优秀的程序员,十分优秀!