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

Append "Flat" to "OriginalFixedImage/fixedImageOriginal" Direction identifiers, replace some this-> #1206

Merged
merged 8 commits into from
Jul 24, 2024

Conversation

N-Dekker
Copy link
Member

A few style improvements to improve readability of the code related to the flat representation of the direction of the fixed image.

When a type is only used once, it is not necessary to add an alias.
Renamed the `m_OriginalFixedImageDirection` data members of ElastixBase and ElastixMain to `m_OriginalFixedImageDirectionFlat`, according to their corresponding Set and Get member functions.
Renamed local `fixedImageOriginalDirection` variables and data members to `fixedImageOriginalDirectionFlat`, to clarify that they are a "flat" representation of a direction matrix.
The prefix `this->` is not necessary when a class accesses its own private data.

Follow-up to commit 7618fa3
Clarified where those data member are from.
The prefix `this->` is not necessary when a class or template just accesses its own private data.

Follow-up to commit 7618fa3
@N-Dekker N-Dekker marked this pull request as ready for review July 24, 2024 16:55
@N-Dekker N-Dekker merged commit bf6980c into main Jul 24, 2024
8 checks passed
@N-Dekker N-Dekker deleted the FlatDirection-style branch July 24, 2024 19:13
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