I got error in the script..

1 view (last 30 days)
D.Regan
D.Regan on 26 Jun 2014
Answered: Jakob Sørensen on 26 Jun 2014
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

Answers (1)

Jakob Sørensen
Jakob Sørensen on 26 Jun 2014
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.

Tags

Community Treasure Hunt

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

Start Hunting!