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

Inquiry about standard deviations #15

Closed
Rubiel1 opened this issue Jun 26, 2020 · 1 comment
Closed

Inquiry about standard deviations #15

Rubiel1 opened this issue Jun 26, 2020 · 1 comment

Comments

@Rubiel1
Copy link

Rubiel1 commented Jun 26, 2020

Based on the wiki and the paper to compute contrast you need $sigma_x*sigma_y$.

In this line you are using $sigma_{12} = F.conv2d(img1 * img2, window, padding=padd, groups=channel) - mu1_mu2$ instead of $sigma_x*sigma_y$.

$sigma_{12}=E(X*Y)-E(X)E(Y)$ while $sigma_x * sigma_y = [ E( X-(E(X) )^2 ) *E(Y- (E(Y))^2 ) ]^{.5}$.

@Rubiel1
Copy link
Author

Rubiel1 commented Jun 26, 2020

Oh you actually uses c*s, not only c: desk
My bad!

@Rubiel1 Rubiel1 closed this as completed Jun 26, 2020
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