Effacer les filtres
Effacer les filtres

facing error in isa()

1 vue (au cours des 30 derniers jours)
Usama Javed
Usama Javed le 5 Jan 2012
i am writing this gabor filter code and when i run it than an error comes which is as follow....
% gabor main interface
clc
img = imread('\C:\Users\Asad\Documents\MATLAB\CE.bmp');
I=rgb2gray(img);
info(I)
[G,gabout] = gaborfilter1(I,.9,10,16,pi/3);
% gaborfilter1.m
function [G,gabout] = gaborfilter(I,Sx,Sy,f,theta);
if isa(I,'double')~=1
Error:--
??? Input argument "I" is undefined.
Error in ==> gaborfilter at 5
if isa(I,'double')~=1
I = double(I);
end

Réponse acceptée

Walter Roberson
Walter Roberson le 5 Jan 2012
This seems odd, unless you tried to run gaborfilter by itself instead of running the "gabor main interface" file.

Plus de réponses (0)

Catégories

En savoir plus sur Image Processing Toolbox dans Help Center et File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by