Undefined function imoverlay uint8 error.
1 view (last 30 days)
Show older comments
I am trying to use imoverlay and it gives me the following error : Undefined function 'imoverlay' for input arguments of type 'uint8'. How can I fix that? The following is my code.
%read the picture and convert
%it to .tiff file
I = imread('bath.jpeg');
imwrite(I, 'bath.tiff');
figure, imshow(I);
%turn the image in grayscale
%for two dimensional convertion
%to apply edge detection
J = rgb2gray(I);
threshold = graythresh(J);
figure, imshow(J);
%apply edge detection
ED = edge(J,'canny');
figure, imshow(ED);
OV = imoverlay(J,ED, [0 255 0]);
figure, imshow(OV);
0 Comments
Answers (1)
Walter Roberson
on 20 Apr 2014
imoverlay() is not part of MATLAB; you can find it by reading http://www.mathworks.com/matlabcentral/answers/21546-imoverlay
0 Comments
See Also
Products
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!