Help with creating an image like this? (Letter E with flanks and Gabor filter)

2 vues (au cours des 30 derniers jours)
JM
JM le 27 Août 2020
Commenté : JM le 27 Août 2020
I'm trying to create image like some of those attached below (picture titled Gabor Es), but I'm having a lot of difficulty.
My thought was to create a standard "E" with flanks in Adobe illustrator and use Matlabs built in imgaborfilt to it, but the output is nothing like below.
Anyone have an idea of how I can create something like this?
  2 commentaires
Image Analyst
Image Analyst le 27 Août 2020
Attach your input image as a PNG file, and attach your script as you have it so far.
JM
JM le 27 Août 2020
Thanks for the quick response!
I've attached both.
I essentially just used the prebuilt example from Matlab and tried out different wavelength and orientation settings, but was unable to produce anything close to what I was looking for. The paper I found those in did not use Matlab, and is older, so it was hard to translate exactly what they did into Matlabs prebuilt code. Admittedly I have no experience image processing so I could be making some very simple errors.
Appreciate any help you could offer!
I = imread('Artboard 1.png');
%%
I = rgb2gray(I);
%%
wavelength = 4;
orientation = 90;
[mag,phase] = imgaborfilt(I,wavelength,orientation);
%%
figure
subplot(1,3,1);
imshow(I);
title('Original Image');
subplot(1,3,2);
imshow(mag,[])
title('Gabor magnitude');
subplot(1,3,3);
imshow(phase,[]);
title('Gabor phase');

Connectez-vous pour commenter.

Réponses (0)

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by