why this error??
1 次查看(过去 30 天)
显示 更早的评论
plz tell me the reason for this error..i have read that "overlay" function works for images of type unit8..why it's not working then?
OriIma=imread('coffee.jpg');
GrayOri=rgb2gray(OriIma);figure,imshow(GrayOri);color=[0 0 0];MaskGrayOri=imoverlay(GrayOri,Bgmclose3,color);figure,imshow(MaskGrayOri);
??? Undefined function or method 'imoverlay' for input arguments of type 'uint8'.
Is there any alternative to overlay that i can use??
0 个评论
采纳的回答
Walter Roberson
2012-4-21
Perhaps you have not downloaded the MATLAB File Exchange contribution you need. imoverlay() is not part of MATLAB.
3 个评论
Walter Roberson
2012-4-21
Is the downloaded imoverlay routine on your path? Which directory do you expect it to be in? What happens if you command
which -all imoverlay
does it show any imoverlay.m file?
Applying logical masking to a grayscale image is usually just a matter of indexing, possibly logical indexing.
更多回答(0 个)
另请参阅
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!