InsightSoftwareConsortium / InsightSoftwareConsortium/ITK-Wasm

Problem sending vtkImageData to pipeline

Open
#626 2 comments 0 reactions 0 assignees View on GitHub
Dominant language
Python
Stars
235
Forks
61
Avg merge
4d 19h
Merged PRs (30d)
4

Description

vtk.js version 25.7.2
itk-wasm version 1.0.0-b.18

FoIlowing the Pipeline Inputs and Outputs tutorial, I am trying to send a vtkImageData to a pipeline that uses ConnectedThresholdFilter, but when ITK_WASM_PARSE function is executed, the pipeline crash showing a error "exception: Unexpected component type". Debugging, I noticed that the problem is related only to the input and output images. In other tests the rest of the parameters were sent without problem.
What is the correct way to send vtkImageData to a pipeline?

Web app
![issue_itkwasm1](https://user-images.githubusercontent.com/30482324/187480139-daa19d2f-088f-4917-907a-53bb27d5a7c2.PNG)

![issue_itkwasm2](https://user-images.githubusercontent.com/30482324/187480300-46b425c3-17b0-4dfd-bb78-805c4bd0f354.PNG)

![issue_itkwasm3](https://user-images.githubusercontent.com/30482324/187480468-a64b7ab3-bbbb-4f6a-945f-ca0389807362.PNG)

![issue_itkwasm4](https://user-images.githubusercontent.com/30482324/187480651-1dfd391c-80c4-44f8-93d1-4c0701eb4ec7.PNG)

ConnectedThresholdFilter.cxx
![issue_itkwasm5](https://user-images.githubusercontent.com/30482324/187483495-54fc489b-ebfb-4b4f-a670-5ce0170034fc.PNG)

CMakeLists.txt
![issue_itkwasm6](https://user-images.githubusercontent.com/30482324/187490507-6eb6f09f-d568-48a3-8a38-6033ca382840.PNG)

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.