tischi / imglib2-splines

1 stars 3 forks source link

Interactive Control Points #1

Open tischi opened 5 years ago

tischi commented 5 years ago

@tpietzsch My idea is to rewrite the whole TransformedBox (https://github.com/bigdataviewer/bigdataviewer-core/blob/master/src/main/java/bdv/tools/boundingbox/TransformedBoxOverlay.java) framework into a ControlPoints framework (https://github.com/tischi/imglib2-splines/blob/master/src/main/java/de/embl/cba/splines/controlpoints/ControlPointsOverlay.java).

So far I did nothing but

But do you think that's the right approach?

tischi commented 5 years ago

Hi @tpietzsch, I got a bit excited, because I think interactive control points could be a very generic thing that could reused in many contexts, such as:

tpietzsch commented 5 years ago

@tischi Yes, copy & paste looks like a good start.

I like the idea of making a generic ControlPointEditor, and all the applications you mention would make a lot of sense. It would have to be quite configurable, e.g.:

It might also make sense to add (optional) functionality to add/remove points interactively (for BigWarp use case).

I wouldn't try to implement all these immediately, but try to keep it in mind that this should be possible to add later...