Clear Filters
Clear Filters

"Expected a string scalar or character vector for the parameter name. "

19 views (last 30 days)
i have facing error
to implement the gabor filter
Error using gabor (line 16)
Expected a string scalar or character vector for the parameter name.
Error in imgaborfilt>parseInputs (line 169)
GaborBank = gabor(varargin{2:end});
here is my code
I = imread('abc.jpg');
I = double(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);
  1 Comment
Guillaume
Guillaume on 26 Jul 2019
what does
which gabor -all
return?
If your script/function is called gabor.m, you will have to give it a different name.

Sign in to comment.

Answers (1)

Oulayaa LAHSARI
Oulayaa LAHSARI on 26 Mar 2022
Error using imageDatastore (line 139)
Expected a string scalar or character vector for the
parameter name.
  1 Comment
Walter Roberson
Walter Roberson on 26 Mar 2022
The original poster did not use imageDatastore anywhere, so it is difficult to understand how your proposed answer is a solution to their question ?

Sign in to comment.

Categories

Find more on Graphics Performance in Help Center and File Exchange

Community Treasure Hunt

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

Start Hunting!