Save 2D grid as image give a bad result
I try to save a regular gris as an image file (ctrl-s) but the result is far from the original data. A test pipeline is the following:
- Create a Uniform Grid (2D, set the first extent to 1-1 for example)
- Add scalars with a random generator (check the type is
uchar
) - Use a pass array to only keep the generated point scalars
-
Ctrl-s
and save as a jpg / png / tiff file, the result is a single column as shown on the right
I do not know if this is related to the bug, but I can only save my image with a 1 componant uchar
or ushort
array, where I would expect 3 components and 4 components to also work.
Edited by Mathieu Westphal (Kitware)