Skip to content

Replace TInputImage::SizeValueType with itk::SizeValueType#5315

Merged
hjmjohnson merged 2 commits intoInsightSoftwareConsortium:masterfrom
N-Dekker:Replace-TInputImage-SizeValueType
Apr 23, 2025
Merged

Replace TInputImage::SizeValueType with itk::SizeValueType#5315
hjmjohnson merged 2 commits intoInsightSoftwareConsortium:masterfrom
N-Dekker:Replace-TInputImage-SizeValueType

Conversation

@N-Dekker
Copy link
Copy Markdown
Contributor

@N-Dekker N-Dekker commented Apr 17, 2025

  • Replaced using SizeValueType = typename TInputImage::SizeValueType with using SizeValueType = itk::SizeValueType.

  • Replaced typename TInputImage::SizeValueType with SizeValueType.

In practice, TInputImage::SizeValueType is always just an alias of itk::SizeValueType anyway.


Clarification: The image types of ITK are derived from itk::ImageBase<VImageDimension>, which defines itk::ImageBase::SizeValueType = itk::Size<VImageDimension>::SizeValueType, as follows:

/** Size type alias support. A size is used to define region bounds. */
using SizeType = Size<VImageDimension>;
using SizeValueType = typename SizeType::SizeValueType;

And itk::Size<VImageDimension>::SizeValueType = itk::SizeValueType, as defined at

using SizeValueType = itk::SizeValueType;

Q.E.D. 🤓

Replaced `using SizeValueType = typename TInputImage::SizeValueType` with
`using SizeValueType = itk::SizeValueType`.

In practice, `TInputImage::SizeValueType` is always just an alias of
`itk::SizeValueType` anyway.
Replaced `typename TInputImage::SizeValueType` with `SizeValueType`.

In practice, `TInputImage::SizeValueType` is always just an alias of
`itk::SizeValueType` anyway.
@github-actions github-actions bot added area:Core Issues affecting the Core module area:Filtering Issues affecting the Filtering module labels Apr 17, 2025
@dzenanz dzenanz requested review from blowekamp and hjmjohnson April 17, 2025 17:22
@N-Dekker N-Dekker marked this pull request as ready for review April 17, 2025 19:42
@hjmjohnson hjmjohnson merged commit 3c574f6 into InsightSoftwareConsortium:master Apr 23, 2025
16 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area:Core Issues affecting the Core module area:Filtering Issues affecting the Filtering module

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants