Skip to content

STYLE: Do not use WeightsType(n) constructor (related to ITK 5.3)#622

Merged
N-Dekker merged 1 commit intodevelopfrom
Do-not-use-WeightsType-constructor
Feb 22, 2022
Merged

STYLE: Do not use WeightsType(n) constructor (related to ITK 5.3)#622
N-Dekker merged 1 commit intodevelopfrom
Do-not-use-WeightsType-constructor

Conversation

@N-Dekker
Copy link
Member

Code like WeightsType weights(n) does not necessarily construct an object of n weights, as it did before ITK 5.3. It now fills a fixed array of weights by value n.

This behavior change is caused by a change of the definition of itk::BSplineInterpolationWeightFunction::WeightsType, by ITK pull request InsightSoftwareConsortium/ITK#2712 commit InsightSoftwareConsortium/ITK@9bf745b "PERF: Use FixedArray for BSplineInterpolationWeightFunction OutputType" (merged on 7 September 2021, included with ITK v5.3rc01).

Follow-up to pull request #620 commit a0cf523 "COMP: Upgrade ITK from v5.2.0 to v5.3rc03" (merged on 18 February 2022).

Code like `WeightsType weights(n)` does not necessarily construct an object of `n` weights, as it did before ITK 5.3. It now fills a fixed array of weights by value `n`.

This behavior change is caused by a change of the definition of `itk::BSplineInterpolationWeightFunction::WeightsType`, by ITK pull request InsightSoftwareConsortium/ITK#2712 commit InsightSoftwareConsortium/ITK@9bf745b "PERF: Use FixedArray for BSplineInterpolationWeightFunction OutputType" (merged on 7 September 2021, included with ITK v5.3rc01).

Follow-up to pull request #620 commit a0cf523 "COMP: Upgrade ITK from v5.2.0 to v5.3rc03" (merged on 18 February 2022).
@N-Dekker N-Dekker merged commit 96f3cf6 into develop Feb 22, 2022
@N-Dekker N-Dekker deleted the Do-not-use-WeightsType-constructor branch February 22, 2022 16:20
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