Skip to content

Remove notfinished variables from ComputeJacobianTerms, and other style improvements#1273

Merged
N-Dekker merged 10 commits intomainfrom
ComputeJacobianTerms-notfinished
Dec 4, 2024
Merged

Remove notfinished variables from ComputeJacobianTerms, and other style improvements#1273
N-Dekker merged 10 commits intomainfrom
ComputeJacobianTerms-notfinished

Conversation

@N-Dekker
Copy link
Copy Markdown
Member

@N-Dekker N-Dekker commented Dec 3, 2024

No description provided.

These typedefs are just needed for the internal implementation of `ComputeJacobianTerms::Compute()`, so they do not need to be part of the interface.
The prefix `this->` is not necessary when a class or template just accesses its own private data.

Follow-up to pull request #1212 commit c8857be "Remove `this->` when BSplineDeformableTransform accesses its data"
Removed this obviously redundant typedef from `ComputeJacobianTerms`.

Also removed the unused `ScaledCostFunctionPointer` alias.
This typedef is just needed for the internal implementation of `ComputeJacobianTerms::Compute()`, so it does not need to be part of the interface.
The indirection via aliases (`FixedImageType = TFixedImage`, `TransformType = TTransform`) does not seem very useful.
@N-Dekker N-Dekker force-pushed the ComputeJacobianTerms-notfinished branch from 2a17eac to eef435d Compare December 4, 2024 10:24
The typedefs `FixedImageType` and `TransformType` are never used anymore. Internally, `ComputeJacobianTerms` directly uses its template parameters, `TFixedImage` and `TTransform`.

`ComputeJacobianTerms` is only being used by `elx::AdaptiveStochasticGradientDescent::AutomaticParameterEstimationOriginal()` anyway.
@N-Dekker N-Dekker force-pushed the ComputeJacobianTerms-notfinished branch from eef435d to f2f1ca4 Compare December 4, 2024 10:29
@N-Dekker N-Dekker merged commit 1ef5b64 into main Dec 4, 2024
@N-Dekker N-Dekker deleted the ComputeJacobianTerms-notfinished branch December 4, 2024 13:26
N-Dekker added a commit that referenced this pull request Dec 4, 2024
N-Dekker added a commit that referenced this pull request Dec 5, 2024
N-Dekker added a commit that referenced this pull request Dec 5, 2024
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