InsightSoftwareConsortium / InsightSoftwareConsortium/ITK
Incorrect size of itk::MaximumProjectionImageFilter output
- Dominant language
- C++
- Stars
- 1.7k
- Forks
- 748
- Avg merge
- 1d 1h
- Merged PRs (30d)
- 64
Description
### Description
There seems to be an inconsistent behaviour in how `itk::MaximumProjectionImageFilter` creates its output:
if I pass a 3D image (XYZ axes) and ask for a maximum projection along X, I expect to get a 2D image with YZ axis order. However, the filter produces it in ZY order.
When the direction of projection is set to Y or Z, the filter outputs the image in the correct order: XZ and XY respectively.
### Steps to Reproduce
Run MWE: https://gist.github.com/aystroganov/e82783d6f23b84640245fd7b35b8bfb8
### Expected behavior
The scripts prints `[20, 30]`
### Actual behavior
The scripts prints `[30, 20]`
### Reproducibility
100%
### Versions
ITK 5.0.1
### Environment
Windows 10, VS 2017
### Additional Information
Contributor guide
Assessment
This issue has not been assessed yet.