I got error in the script..

1 visualizzazione (ultimi 30 giorni)
D.Regan
D.Regan il 26 Giu 2014
Risposto: Jakob Sørensen il 26 Giu 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

Risposte (1)

Jakob Sørensen
Jakob Sørensen il 26 Giu 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.

Tag

Community Treasure Hunt

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

Start Hunting!

Translated by