regarding downloading of file exchange contribution

1 view (last 30 days)
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'.

Answers (1)

Image Analyst
Image Analyst on 21 Apr 2012
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.

Categories

Find more on Downloads in Help Center and File Exchange

Community Treasure Hunt

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

Start Hunting!