Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error in compute_difference.m: unknown variable/function 'warpedImage' #4

Open
pputzky opened this issue Nov 2, 2016 · 0 comments
Open

Comments

@pputzky
Copy link

pputzky commented Nov 2, 2016

Hi,

First of all, thank you for the excellent work and code! I was trying to evaluate my own method with you quantification script. But there seems to be an error in the function compute_difference.m

At some point in the code the function tries to use variable warpedImage:

% Compute Structural similarity index (SSIM index)
45	% =========================================================================
46	[ssim, ~] = ssim_index(imgt, warpedImage);
…	
49	% Compute information fidelity criterion (IFC)
50	% =========================================================================
51	ifc = ifcvec(imgt, warpedImage);

But warpedImage was not defined before. I am guessing it should just be replaced with 'im' such that the code becomes

% Compute Structural similarity index (SSIM index)
45	% =========================================================================
46	[ssim, ~] = ssim_index(imgt, im);
…	
49	% Compute information fidelity criterion (IFC)
50	% =========================================================================
51	ifc = ifcvec(imgt, im);

Is this correct, or did you intend to have another preprocessing step which produces warpedImage?

Thanks again for the great work!

Cheers

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant