what's wrong with the code below?
>> x = imread('D:\Database\vehicle\35\1.jpg');
>> x1 = rgb2gray(x);
>> x2 = edge(x1);
>> imshow(x2);
it gives this error:
Error using ==> iptcheckinput Function IMAGEDISPLAYVALIDATEPARAMS expected its first input, I, to be one of these types:
double, single, uint8, uint16, uint32, int8, int16, int32, logical
Instead its type was edge.
It does show the original and the gray image, but doesn't show the edge image. How can I show an image after edge detection?
Actually my edge function also doesn't work. When I type:
>> x2
Edge ""
The output is empty.