regarding downloading of file exchange contribution

1 次查看(过去 30 天)
I have just downloaded "imoverlay" function..and i have MATLAB 7.9 but plz tell me why it's not working.It's reporting following error
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'.

回答(1 个)

Image Analyst
Image Analyst 2012-4-21
You would get the very same error if you don't have imoverlay on your path, and so MATLAB can't even find it. I get that and I didn't even download it. Try this:
which -all imoverlay
and see where it tells you that it lives. If it says "'imoverlay' not found." then you don't have it in your current folder or anywhere on your path. So find out where it lives, then do this:
addpath(folderOfimoverlay);
savepath;
I'm pretty sure that's the cause of your problem. The actions I've given you should let it run without that error message.

类别

Help CenterFile Exchange 中查找有关 Biomedical Imaging 的更多信息

标签

Community Treasure Hunt

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

Start Hunting!

Translated by