I’ve been working on a plugin and I’m not sure how to proceed from here.
I’ve generated a false colour image, an ImagePlus, from a stack of images. I’ve been using this false colour image to allow the user to select regions-of-interest for the stack. I’ve been displaying it using UIService.show().
This however opens it up to the problem of the user attempting to transform the false colour image, which breaks how the region-of-interest translates to the image stack.
I’ve been trying to display this false colour image by extending ij.gui.ImageWindow. Where I can restrict the types of transformations to the JButtons I want to implement and record the transformations made. This would allow the user to adjust the view on the preview image while informing the plugin.
I’m honestly not sure where to start. I’ve not been able to get ImageJ to display this extended ImageWindow. It’s just an empty class extending ImageWindow right now. I’ve used WindowManager and UIService to display it so far.
I’ve not been able to find an example from among Fiji’s plugins so far and I would dearly appreciate it if I could get a reference to a plugin’s source code I could learn from.
Failing that, a nudge in the right direction would be much appreciated.