I am trying to use a .fis file by giving an iput using evalfis() function. I am giving input in the form:
jo= myImage(2); % jo contains the graysacle value of pixel at location 2
a=readfis('terrain_classification_fuzzy');
Result = evalfis(jo,a);
But i am getting the following error:
??? Error using ==> evalfismex The first input must be a defined DOUBLE matrix
Error in ==> evalfis at 84 [output,IRR,ORR,ARR] = evalfismex(input, fis, numofpoints);
Error in ==> see_movie_segmentationTry4_incorrect at 113 Result = evalfis([jo],a);
Kindly help me with this...
I found the error. It was just that "jo" was initally set to int8 and not of type double..