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

ENH: Add "ReduceDimension" option to ImageSampler components #1083

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

N-Dekker
Copy link
Member

Allows reducing the dimensionality of any image sampler by a new elastix parameter:

(ReduceDimension "true")

Aims to implement a generalization to the ReducedFullSampler, pull request #52 proposed by Mathias Polfliet (@MathiasPolfliet) in 2018.


if (m_ReduceDimension)
{
m_CroppedInputImageRegion.GetModifiableSize().back() = 1;
Copy link
Member Author

Choose a reason for hiding this comment

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

@mstaring @stefanklein It does not seem to be necessary to also adjust the index (by doing index[N-1] = 0, maybe), but that depends on the use case, I guess... See #1064 (comment)

@N-Dekker
Copy link
Member Author

At today's internal elastix sprint, we (@mstaring, @stefanklein) agreed to use a different name for the new parameter: "UseSamplingForGroupwiseRegistration"

Allows elastix users to specify that the image sampling is used for group-wise registration:

    (UseSamplingForGroupwiseRegistration "true")

Aims to implement a generalization to the ReducedFullSampler, pull request #52 proposed by Mathias Polfliet in 2018.
@N-Dekker N-Dekker force-pushed the ImageSampler-ReduceDimension branch from e03c538 to b41eb07 Compare April 5, 2024 10:08
@N-Dekker
Copy link
Member Author

N-Dekker commented Apr 8, 2024

The parameter is now renamed to "UseSamplingForGroupwiseRegistration", but Stefan (@stefanklein) suggested to double-check if it can really be applied to any groupwise registration. For BendingEnergy, it may not be appropriate.

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.

1 participant