Open oeway opened 3 years ago
ITK and ImageJ (I believe) treat the origin in the lower left, but VTK and VTK.js put the origin in the top left corner. We now have a nice axis tools that helps visualize this (works in 2D and 3D):
I could create an ImJoy plugin to flip the data vertically.
In fact, the origin of imagej is actually top-left-- same as the current version of itk-vtk-viewer
I had the impression that itk-vtk-viewer's origin is lower-left, and I checked an old plugin, and it actually located lower left:
The plugin is here
What's happening?
It could be related to how the data is read in -- e.g. ITK reads JPEGs in the natural (C-order) pixel order, but VTK flips the data in the J direction because of this "upper-left origin" issue. In the above two examples, what is reading in the data from file?
Would be nice to have an option to determine the origin, for example, for the ImJoy api.
Currently, the default origin for itk-vtk-viewer located in the lower-left corner, however, for microscopy images, the origin is located in the top-left corner.