CompVis / CompVis/EDGS

Possibly typo.

Open
#14 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Jupyter Notebook
Stars
742
Forks
59
PR merge metrics
No merged PRs in 30d

Description

Thanks for the great codes.
I am not sure but the following might be typo.
0 is for x
1 is for y.
x is for W
y is for H.
So the H of the 1st line and W of the 2nd line should be swapped in this normalization ?

https://github.com/CompVis/EDGS/blob/eb21ad512ed0346676d278aac25b2dfbbfff9d4a/source/corr_init.py#L392

kptsA_np[:, 0] = kptsA_np[:, 0] / H * 2.0 - 1.0
kptsA_np[:, 1] = kptsA_np[:, 1] / W * 2.0 - 1.0
kptsB_np[:, 0] = kptsB_np[:, 0] / W_B * 2.0 - 1.0
kptsB_np[:, 1] = kptsB_np[:, 1] / H_B * 2.0 - 1.0

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start at source/corr_init.py around line 392 and trace how kptsA_np and kptsB_np coordinates are defined before normalization. Compare the x/y convention with the image height and width variables to confirm whether the denominators are swapped. Done when the normalization is verified as correct or the issue is resolved with the appropriate correction.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
computer-vision
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Quiet
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.