You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
So right now the shaders in VTK.js only support Float32 and UInt8. We are working on enabling the use of Int16 and UInt16 in this PR here: Kitware/vtk-js#2058
That's the main reason why we put these errors. I don't think we actually checked if it would work or not. It's just that we know it's slow to convert formats.
It's possible that if you just remove this if check and just try to use an Int8 ImageData, VTK may convert it to a Float32 before putting it into the shader anyway, but I've never tried.
@swederik how difficult would it be to add support for 8-bit images? Any chance you could help point me in the right direction?
react-vtkjs-viewport/src/lib/getImageData.js
Line 47 in 0a3cb79
The text was updated successfully, but these errors were encountered: