Kitware / itk-vtk-viewer

2D / 3D web image, mesh, and point set viewer using itk-wasm and vtk.js
https://kitware.github.io/itk-vtk-viewer/
BSD 3-Clause "New" or "Revised" License
210 stars 64 forks source link

Shipping itk-vtk-viewer with ImageJ.JS #349

Open oeway opened 3 years ago

oeway commented 3 years ago

I just shipped itk-vtk-viewer in ImageJ.JS, see it in action: https://ij.imjoy.io itk-vtk-viewer-2d-imagej imagej-itk-vtk-viewer

Would be nice to have https://github.com/Kitware/itk-vtk-viewer/issues/348 and https://github.com/Kitware/itk-vtk-viewer/issues/347 solved so I can hide the UI control by default and set the origin to the top-left corner (same as imagej).

Currently, we rely on a wrapper plugin to handle the bridge between imagej.js and itk-vtk-viewer. A better way to do this is to register a service (see the new api.registerService api) directly from the viewer, say, visualization service, and ImageJ.JS and other site with imjoy-core can then discover and consume the visualization service.

thewtex commented 3 years ago

@oeway beautiful!! :heart: :sun_with_face: :rocket: .

Cool idea regarding the service! A refined idea of how the API would work nicely will come as we address #348 and we make more lazy-zarr backend examples.