Does vti (vtkImageData) only support 1channel?

Hello
I have a question.

Does vti(vtkImageData) only support 1channel? only greyscale?

Thank you

Here’s an example of a color image:
https://lorensen.github.io/VTKExamples/site/Cxx/Visualization/ImageMapper/

1 Like

No it is not limited to 1 channel. Like all vtkDataSets, you can add as many arrays as you like, where each can have any number of components, to a vtkImageData.

The caveat however is that many of the dedicated image processing filters are written to operate on the vtkDataSet::ActiveScalars array. Note that despite “Scalars” in the name, this array is quite often a three component RGB array.

1 Like