I want to create a plugin that lets me load two images, side by side, and lets me simultaneously zoom in on both of them. My Java skills are rusty and I'm not sure where to start. Can any one give me some advice and point me in the right direction?
|
Dear Richard,
On 18.03.2013 20:01, Richard wrote: > I want to create a plugin that lets me load two images, side by side, and > lets me simultaneously zoom in on both of them. My Java skills are rusty and > I'm not sure where to start. Can any one give me some advice and point me in > the right direction? at least for the tricky part there is already such functionality: the "Sync Windows" plugin. So unless you need something very special, there is no need to re-implement this. On the other side, you could have a look at the code of this plugin, if you still plan to do something new. Cheers Niko -- Niko Ehrenfeuchter Imaging Core Facility Kragenbau, Room G1055 Biozentrum, University of Basel Klingelbergstrasse 50/70 CH-4056 Basel (Switzerland) Office: +41 (61) 26 72673 Email: [hidden email] -- ImageJ mailing list: http://imagej.nih.gov/ij/list.html |
Hi Niko,
Thank you for your quick reply! I have looked at the sync windows plugin. When I zoom the upper left corner of each window remains fixed but the size of the image changes. I need the two windows to remain in the same orientation on the screen, and remain the same size too. The code seems rather complex for my level of skill. Is there a simpler approach? Thanks for your help, Richard |
Hi Richard,
On 18.03.2013 21:04, Richard wrote: > Hi Niko, > > Thank you for your quick reply! I have looked at the sync windows plugin. > When I zoom the upper left corner of each window remains fixed but the size > of the image changes. I need the two windows to remain in the same > orientation on the screen, and remain the same size too. The code seems that's the default behaviour of ImageJ - you could trick it into keeping the size by moving the image window to the bottom of the screen, so ImageJ doesn't have the space to increase the window size. It will zoom in then, and show the navigation overlay, instead of enlarging the window. Otherwise, I am not aware of any other way to adjust this behaviour (except for touching the code). Maybe anyone else? Cheers Niko -- ImageJ mailing list: http://imagej.nih.gov/ij/list.html |
Hi Niko,
If you don't mind trying things sideways, have a look at Icy's synchronised window system (http://icy.bioimageanalysis.org). You can multiple windows using the padlock symbol, which lets you choose between full X,Y,Z,T sync, or just X,Y, or just Z,T. The zooming always focuses on the mouse cursor position (which also adds a crosshair in all viewers for pixel value checking). Since Icy has ImageJ built-in, you can still use your favourite plug-ins and bridging images to Icy when in need of synchronisation. Worth a try… Alexandre On Mar 18, 2013, at 9:27 PM, Niko Ehrenfeuchter <[hidden email]> wrote: > Hi Richard, > > On 18.03.2013 21:04, Richard wrote: >> Hi Niko, >> >> Thank you for your quick reply! I have looked at the sync windows plugin. >> When I zoom the upper left corner of each window remains fixed but the size >> of the image changes. I need the two windows to remain in the same >> orientation on the screen, and remain the same size too. The code seems > > that's the default behaviour of ImageJ - you could trick it into keeping the size by moving the image window to the bottom of the screen, so ImageJ doesn't have the space to increase the window size. It will zoom in then, and show the navigation overlay, instead of enlarging the window. > > Otherwise, I am not aware of any other way to adjust this behaviour (except for touching the code). Maybe anyone else? > > Cheers > Niko > > -- > ImageJ mailing list: http://imagej.nih.gov/ij/list.html -- ImageJ mailing list: http://imagej.nih.gov/ij/list.html |
Free forum by Nabble | Edit this page |