InsightSoftwareConsortium / itkwidgets

An elegant Python interface for visualization on the web platform to interactively generate insights into multidimensional images, point sets, and geometry.
https://itkwidgets.readthedocs.io/
Apache License 2.0
579 stars 83 forks source link

ENH: add compareImage to viewer #640

Closed PaulHax closed 1 year ago

PaulHax commented 1 year ago

Use setCompareImage in ThinPlateSpline example

TODO

review-notebook-app[bot] commented 1 year ago

Check out this pull request on  ReviewNB

See visual diffs & provide feedback on Jupyter Notebooks.


Powered by ReviewNB

review-notebook-app[bot] commented 1 year ago

View / edit / reply to this conversation on ReviewNB

thewtex commented on 2023-03-29T23:14:32Z ----------------------------------------------------------------

Line #1.    viewerA = view()

Let's create a function in the packge, compare_images to reduce this to a single call:

def compare_images([same arguments as the method less self]):
  viewer = view()
  viewer.compare_images(*args, **kwargs)
  return viewer


PaulHax commented on 2023-03-29T23:58:23Z ----------------------------------------------------------------

Yessss! Cleaner.