Skip to content

Pull request for merging LMU modifications#41

Merged
acoussat merged 11 commits into
RTKConsortium:mainfrom
SimonRit:LMU_HeCT
Jun 12, 2026
Merged

Pull request for merging LMU modifications#41
acoussat merged 11 commits into
RTKConsortium:mainfrom
SimonRit:LMU_HeCT

Conversation

@SimonRit

@SimonRit SimonRit commented Oct 8, 2025

Copy link
Copy Markdown
Collaborator

No description provided.

@acoussat

acoussat commented Apr 3, 2026

Copy link
Copy Markdown
Collaborator

I have converted pctpairprotonsLomaLinda.cxx to Python here: SimonRit#1. Feel free to comment on it. I still would like to add a test before merging.

I'm not sure what needs to be done with pctpairprotonsLMU_IMPCT.cxx, as far as I understand the conversion does not do much besides applying some fluence level (as in pctpairprotonsLomaLinda.cxx ), filtering protons and alpha particles in a way I don't fully understand (what are 2212 and 1000020040?), and converting centimeters to millimeters. Also, I don't have a test file for this case.

I don't fully remember what was said about those scripts, sorry.

@acoussat

Copy link
Copy Markdown
Collaborator

@SimonRit can I rebase on top of main now to solve the conflicts?

@SimonRit

Copy link
Copy Markdown
Collaborator Author

@SimonRit can I rebase on top of main now to solve the conflicts?

Sure

@acoussat acoussat force-pushed the LMU_HeCT branch 3 times, most recently from 0f7421e to 1a9815d Compare April 22, 2026 17:11
@acoussat

Copy link
Copy Markdown
Collaborator

I think the PR is almost ready, the only thing I could still see missing is some documentation. Should I try to add some, should we ask George to write some, or do we consider the new features as niche and just skip the documentation?

@SimonRit

Copy link
Copy Markdown
Collaborator Author

I think the PR is almost ready, the only thing I could still see missing is some documentation. Should I try to add some, should we ask George to write some, or do we consider the new features as niche and just skip the documentation?

Thanks. We should document all the functionalities but that can come later. Reviewing the PR (which I can't approve as it's mine!), I wonder if it makes sense to have the two applications pctpaircuts and pctfilterprotons. Both take a list of protons pairs and cut/filter some according to some (different) criteria. What do you think?

@acoussat

Copy link
Copy Markdown
Collaborator

I completely agree and I even thought about merging the two codes into one when implementing it. The problem is that pctpaircuts is, at the moment, only implemented in C++. So I think it would be better to wait that pctpaircuts is reimplemented as an ITK filter (thanks to you!), then we can either move the code of pctfilterprotons into this new filter (in C++), or in a new pctpaircuts application that would internally use this filter (in Python).

@SimonRit

Copy link
Copy Markdown
Collaborator Author

The functionalities in pctfilterprotons should be merged in pctpaircuts before merging.

@acoussat acoussat force-pushed the LMU_HeCT branch 2 times, most recently from b6e47c7 to fb627df Compare May 21, 2026 08:09
#include <itkTimeProbe.h>

/** \class FDKDDConeBeamVarianceReconstructionFilter
* TODO

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Missing comment here, should I try and make up one?

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, e.g., "Implements variance reconstruction with distance-driven filtered backprojection reconstruction (doi:10.1118/1.4789589) from variance projections." Thanks!

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Also missing from FDKDDConeBeamReconstructionFilter but I guess this is unrelated to this PR and can go in a separate PR in which we clean and improve the documentation.

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Opened #85 which cleans a bit the C++ docstrings.

@acoussat acoussat changed the title WIP: Pull request for merging LMU modifications Pull request for merging LMU modifications May 21, 2026
Comment thread include/pctFFTVarianceImageFilter.hxx Outdated
// this->m_RamLakCutFrequency = 0.;
// this->m_SheppLoganCutFrequency = 0.;
}
{}

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you use the =default constructor instead ? It can be in the header I believe (see InsightSoftwareConsortium/ITK#6000 otherwise)

@acoussat acoussat Jun 12, 2026

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm not entirely familiar with the exact difference between {} and = default… Should I also update other instances such as the constructors of EnergyStragglingFunctor, FDKDDWeightProjectionFilter, MostLikelyPathFunction and so on?

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can be done in a separate PR yes. You can check SO for some explanations on the difference but to me it's mainly a matter of style, much less code.

@SimonRit

Copy link
Copy Markdown
Collaborator Author

If you agree, please merge and address the comments in separate PRs for the whole repository.

@acoussat acoussat merged commit 0519a27 into RTKConsortium:main Jun 12, 2026
14 checks passed
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