PyTomography / PyTomography/PyTomography

DVF volume ratio (Jacobian) correction commented out in MotionTransform

Open
#229 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Python
Stars
173
Forks
38
Avg merge
1h 17m
Merged PRs (30d)
5

Description

Hi, I noticed that in transforms/shared/motion.py:22-25 the volume
ratio computed by _get_vol_ratio is commented out and hardcoded to

  1. _apply_dvf multiplies by this ratio, so for non-volume-preserving
    DVFs the total counts are not conserved between the forward and
    backward passes, which would affect quantitative reconstruction. I'm
    not sure if this was intentional - just wanted to flag it in case the
    missing Jacobian term matters for the gated OSEM/BSREM workflows.

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

Read transforms/shared/motion.py:22-25, including _get_vol_ratio and _apply_dvf, to determine whether the commented-out volume-ratio correction is intentional. Check how gated OSEM/BSREM workflows use MotionTransform and define a reproducible conservation check for forward and backward passes; done means the intended behavior is documented and covered by an appropriate test.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
data
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Quiet
Clarity
Mostly clear
Newbie friendliness
48/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.