Skip to content

(Image): fix the iterator when using a different type than the image

Emilie WERNERT requested to merge 413-image-end-iterator-is-not-correct into dev

What does this MR do?

The image iterator is now computed based on the format of the iterator instead of using the image type. You can now use Iterator on int16 image. It can be useful to fill the image with zeros. You can also parse int32 image with int64 iterator to gain performance.
SLM_WARN have been added when you use an iterator on a different type.

How to test it?

Launch the tests. See that vtkOpTest is correct.

Associated Issues/Merge Requests

Edited by Emilie WERNERT

Merge request reports