필터 지우기
필터 지우기

why this error??

조회 수: 2 (최근 30일)
supriya
supriya 2012년 4월 21일
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??

채택된 답변

Walter Roberson
Walter Roberson 2012년 4월 21일
Perhaps you have not downloaded the MATLAB File Exchange contribution you need. imoverlay() is not part of MATLAB.
  댓글 수: 3
supriya
supriya 2012년 4월 21일
actually i want to mask(logical) my graay scale image(unit8)..can i do it any other way?
Walter Roberson
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!

Translated by