I got error in the script..

1 次查看(过去 30 天)
D.Regan
D.Regan 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.

类别

Help CenterFile Exchange 中查找有关 Geometric Transformation and Image Registration 的更多信息

标签

Community Treasure Hunt

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

Start Hunting!

Translated by