I got error in the script..

조회 수: 1 (최근 30일)
D.Regan
D.Regan 2014년 6월 26일
답변: Jakob Sørensen 2014년 6월 26일
Hi,
I got EMD script from http://aquador.vovve.net/IEMD/index.html, but I got errors on my simulation. I called script function simply as followed on my matlab window..,
Img = imread('E:\root\DIP test images\test2.jpg'); [ix,resx,medel]=IEMD_public(Img,1,10,4)
but errors are,
Error using - Integers can only be combined with integers of the same class, or scalar doubles.
Error in IEMD_public>interpolateimf (line 155) c=x-medel;
Error in IEMD_public>findimf (line 101) [hk, medel,f]=interpolateimf(xin,p,conn);
Error in IEMD_public (line 51) [imf,res,medel]=findimf(image,1,epsilon,conn);
Error in emdp (line 12) [ix,resx,medel]=IEMD_public(Img,1,10,4)
If possible, kindly give notice on this..
Thanking U
With regards,
Regan D

답변 (1개)

Jakob Sørensen
Jakob Sørensen 2014년 6월 26일
Can you tell us what data type the image is, after loading it (the img variable). You can usually see it in the upper right corner, or using the whos command.
It seems like there is a mismatch in data types.

태그

Community Treasure Hunt

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

Start Hunting!

Translated by