Watch this Author's files
Bad MATLAB implementation.
i could not undrestant what does means ?
it helped me a lot
There are an error with the 'expand' function.
The most inner loop should be as:
if ( (floor(pixeli) == pixeli) & (floor(pixelj) == pixelj ) ) pixeli = pixeli + 2; pixelj = pixelj + 2; tmpval = I (pixeli, pixelj) * Wt(m + 3) * Wt(n + 3); A = [A, tmpval] ; end
Otherwise, the expanded image will have 1 pixel shifting to right and down.
Changing the line "A = [A, tmpval] ;" to "A = A + sum(tmpval);" highly increases speed because memory has not to be allocated in each loop.
Contact us at files@mathworks.com