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

VectorImage output from Pipeline has only 1 component #803

Open
PaulHax opened this issue Apr 12, 2023 · 1 comment
Open

VectorImage output from Pipeline has only 1 component #803

PaulHax opened this issue Apr 12, 2023 · 1 comment

Comments

@PaulHax
Copy link
Collaborator

PaulHax commented Apr 12, 2023

After npm run test with this pipeline:
https://github.com/PaulHax/itk-wasm-vector-image-example

the attached output image has only 1 component. I expected 2 after the ComposeImageFilter.

Could be doing something silly in the VectorImageTest.cxx file.

output

@PaulHax
Copy link
Collaborator Author

PaulHax commented Apr 12, 2023

If I change this line in the example:
https://github.com/PaulHax/itk-wasm-vector-image-example/blob/a8d2c9626d2c1eb225b7b5510f90ee9fe165b0db/VectorImageTest.cxx#L49

From
using PipelineOutputType = typename itk::VectorImage<typename ImageType::PixelType, ImageType::ImageDimension>;

To
using PipelineOutputType = itk::Image<itk::Vector<uint8_t, 2>, ImageType::ImageDimension>;

Output image has 2 components! 🎉

output

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

No branches or pull requests

1 participant