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

Maybe a mistake at raw2raw#L92 ? #3

Open
DavideHe opened this issue Jan 5, 2022 · 0 comments
Open

Maybe a mistake at raw2raw#L92 ? #3

DavideHe opened this issue Jan 5, 2022 · 0 comments

Comments

@DavideHe
Copy link

DavideHe commented Jan 5, 2022

code at https://github.com/howardyclo/clcc-cvpr21/blob/master/util/raw2raw.py#L92

M_AC = (1 - w[:,None,None]) * I + w[:,None,None] * M_AB
M_BC = (1 - w[:,None,None]) * I + w[:,None,None] * M_BA

if Ill_c be defined by M_AC ,then M_BC should be M_BC = (1 - w[:,None,None]) * M_BA + w[:,None,None] *I

prove as below:

M_BC  = M_BA @ M_AC = M_BA @ ( (1 - w[:,None,None]) * I + w[:,None,None] * M_AB )
## ==>
M_BC  = ( (1 - w[:,None,None]) * M_BA  + w[:,None,None] * M_BA @M_AB )
## M_BA @M_AB closed to I theoretically.
M_BC = (1 - w[:,None,None]) * M_BA + w[:,None,None] *I
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