Skip to content

Fix safe division in f-k#14

Merged
diegoroyo merged 3 commits intodiegoroyo:masterfrom
AlfonsoLRz:f-k
Feb 19, 2026
Merged

Fix safe division in f-k#14
diegoroyo merged 3 commits intodiegoroyo:masterfrom
AlfonsoLRz:f-k

Conversation

@AlfonsoLRz
Copy link
Contributor

Modifying the last division in f-k seems to denoise a bit the results. The division was intended to be a safe op instead of selecting the maximum value of sqrt_term (https://github.com/computational-imaging/nlos-fk/blob/d34d49fed5a86f4ebddf85d461cff6923de5367d/cnlos_reconstruction.m#L79). Also, the commit includes downsampling in f-k.

The following images compare the changes (left, "fixed" version; right, current one):

image image

@diegoroyo diegoroyo merged commit 116e93a into diegoroyo:master Feb 19, 2026
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

Successfully merging this pull request may close these issues.

2 participants