I have NRRD files from which models have been generated in Slicer, in register.
I read them into vtkjs using vtkITKImageReader, ImageMapper, and ImageSlice, following the appropriate example vtkjs code.
The slices and models are generally in the right place and their bounding boxes are aligned. However, the I and J axes seem swapped in the slices so that the image doesn’t align with the model. I’m seeing the same problem in all other data sets from our atlases.
Here’s a demo of the problem. These models and volume align in Slicer. Look at a high K slice to see that the images are mirrored.
I’d like to find the most appropriate place to do the transform or otherwise fix the problem. Thanks.