Login  Register

Plugin development: How to get value of image window channel/slice when user changes channel/slice?

Posted by MrScientistman2 on Apr 28, 2017; 4:24pm
URL: http://imagej.273.s1.nabble.com/Plugin-development-How-to-get-value-of-image-window-channel-slice-when-user-changes-channel-slice-tp5018633.html

Dear all,

I am developing a ImageJ (v1.51) plugin, which take some input data from an image file, filters it, and displays it in a output image window. The plugin uses a swing frame with some buttons to add more filters etc. The problem is that I want to have a text field in my swing frame which shows the value corresponding to which current channel/slice that is viewed/selected in the output image window. So basically, every time the user changes the channel/slice of the output image window, my swing frame should update which channel/slice is displayed/viewed. Since I am not handling the output image window with swing myself I don't know how to get an event listener attached to the output image window. Anyone got some pointers or ideas?

Cheers


--
ImageJ mailing list: http://imagej.nih.gov/ij/list.html