BIOP / bigdataviewer-biop-tools

Another repo for bdv tools.
5 stars 2 forks source link

Load and save ellipsoid transforms #19

Closed tischi closed 3 years ago

tischi commented 3 years ago

@NicoKiaru can you already save and load EllipsoidTransforms?

NicoKiaru commented 3 years ago

Normally yes because there's an adapter:

https://github.com/BIOP/bigdataviewer-biop-tools/blob/master/src/main/java/bdv/util/Elliptical3DTransformRealTransformAdapter.java

tischi commented 3 years ago

OK, can I try to add something the UI such that users can make use of this? Or is there already some Save button for this?

NicoKiaru commented 3 years ago

OK, can I try to add something the UI such that users can make use of this?

Sure, to save the transform, it works like this:

ScijavaGsonHelper.getGson(scijavaContext).toJson(transform, RealTransform.class);

tischi commented 3 years ago

Here's the PR