magnifying glass in 1.38x

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
9 messages Options
Reply | Threaded
Open this post in threaded view
|

magnifying glass in 1.38x

Martin Wessendorf
In ImageJ 1.38x, the behavior of the magnifying glass appears to be
inconsistent.  On occasion, using it without the shift key down will
make the image enlarge and the window grow larger.  However, on other
occasions, using it will zoom in on the image but not increase the size
of the window.  If the latter happens and I try again with the shift key
down, nothing happens--the magnifying glass has no effect at all.  Other
behavior seems normal; right-clicking will make the window grow smaller
as it zooms out.

Anyone else seen this?  I'm using ImageJ under Windows XP SP2 and Java
1.5.0_09.

Thanks--

Martin
--
Martin Wessendorf, Ph.D.                   office: (612) 626-0145
Assoc Prof, Dept Neuroscience                 lab: (612) 624-2991
University of Minnesota             Preferred FAX: (612) 624-8118
6-145 Jackson Hall, 321 Church St. SE    Dept Fax: (612) 626-5009
Minneapolis, MN  55455             E-mail: martinw[at]med.umn.edu
Reply | Threaded
Open this post in threaded view
|

Re: magnifying glass in 1.38x

Wayne Rasband
The magnifying glass tool is obsolete. It is much more efficient to
press "+" to zoom in and "-" to zoom out. ImageJ will make the window
larger if there is room on the screen. Hold down the shift key and
press "+" to zoom in without enlarging the window. To scroll the image,
hold the space bar down and drag.

-wayne

On Dec 10, 2007, at 4:48 PM, Martin Wessendorf wrote:

> In ImageJ 1.38x, the behavior of the magnifying glass appears to be
> inconsistent.  On occasion, using it without the shift key down will
> make the image enlarge and the window grow larger.  However, on other
> occasions, using it will zoom in on the image but not increase the
> size of the window.  If the latter happens and I try again with the
> shift key down, nothing happens--the magnifying glass has no effect at
> all.  Other behavior seems normal; right-clicking will make the window
> grow smaller as it zooms out.
>
> Anyone else seen this?  I'm using ImageJ under Windows XP SP2 and Java
> 1.5.0_09.
>
> Thanks--
>
> Martin
> --
> Martin Wessendorf, Ph.D.                   office: (612) 626-0145
> Assoc Prof, Dept Neuroscience                 lab: (612) 624-2991
> University of Minnesota             Preferred FAX: (612) 624-8118
> 6-145 Jackson Hall, 321 Church St. SE    Dept Fax: (612) 626-5009
> Minneapolis, MN  55455             E-mail: martinw[at]med.umn.edu
>
Reply | Threaded
Open this post in threaded view
|

Re: magnifying glass in 1.38x

Martin Wessendorf
I get the same behavior either way.  The window will become smaller but
not larger, despite there being plenty of room.  However, if I zoom in
and manually make the window larger, it will subsequently zoom out to
that size window--but for that image only.

Martin

Wayne Rasband wrote:

> The magnifying glass tool is obsolete. It is much more efficient to
> press "+" to zoom in and "-" to zoom out. ImageJ will make the window
> larger if there is room on the screen. Hold down the shift key and press
> "+" to zoom in without enlarging the window. To scroll the image, hold
> the space bar down and drag.
>
> -wayne
>
> On Dec 10, 2007, at 4:48 PM, Martin Wessendorf wrote:
>
>> In ImageJ 1.38x, the behavior of the magnifying glass appears to be
>> inconsistent.  On occasion, using it without the shift key down will
>> make the image enlarge and the window grow larger.  However, on other
>> occasions, using it will zoom in on the image but not increase the
>> size of the window.  If the latter happens and I try again with the
>> shift key down, nothing happens--the magnifying glass has no effect at
>> all.  Other behavior seems normal; right-clicking will make the window
>> grow smaller as it zooms out.
>>
>> Anyone else seen this?  I'm using ImageJ under Windows XP SP2 and Java
>> 1.5.0_09.
>>
>> Thanks--
>>
>> Martin
>> --
>> Martin Wessendorf, Ph.D.                   office: (612) 626-0145
>> Assoc Prof, Dept Neuroscience                 lab: (612) 624-2991
>> University of Minnesota             Preferred FAX: (612) 624-8118
>> 6-145 Jackson Hall, 321 Church St. SE    Dept Fax: (612) 626-5009
>> Minneapolis, MN  55455             E-mail: martinw[at]med.umn.edu
>>
>
>

--
Martin Wessendorf, Ph.D.                   office: (612) 626-0145
Assoc Prof, Dept Neuroscience                 lab: (612) 624-2991
University of Minnesota             Preferred FAX: (612) 624-8118
6-145 Jackson Hall, 321 Church St. SE    Dept Fax: (612) 626-5009
Minneapolis, MN  55455             E-mail: martinw[at]med.umn.edu
Reply | Threaded
Open this post in threaded view
|

Re: magnifying glass in 1.38x

Gabriel Landini
On Monday 10 December 2007 23:02:42 Martin Wessendorf wrote:
> I get the same behavior either way.  The window will become smaller but
> not larger, despite there being plenty of room.  However, if I zoom in
> and manually make the window larger, it will subsequently zoom out to
> that size window--but for that image only.
>

Works as Wayne suggests in my setup. 1.38x is not the latest version of IJ,
have you tried updating to the latest ij.jar and see if the behaviour you
mention is still there?

http://imagejdocu.tudor.lu/imagej-documentation-wiki/faq/how-do-i-update-imagej

Cheers,

G.
Reply | Threaded
Open this post in threaded view
|

Re: magnifying glass in 1.38x

Joachim Walter
In reply to this post by Wayne Rasband
Shift-zooming works fine with the num-pad on my desktop-keyboard, but
leaving out the num-pad (as on Laptops) the shift-plus does not work on
my German keyboard. Probably ImageJ gets a "*" instead of a "shift-+". I
liked the possiblity to "shift-mouseclick", where you don't have to get
your hand off the mouse to zoom and keep the window the same size.

Joachim


Wayne Rasband schrieb:

> The magnifying glass tool is obsolete. It is much more efficient to
> press "+" to zoom in and "-" to zoom out. ImageJ will make the window
> larger if there is room on the screen. Hold down the shift key and
> press "+" to zoom in without enlarging the window. To scroll the
> image, hold the space bar down and drag.
>
> -wayne
>
> On Dec 10, 2007, at 4:48 PM, Martin Wessendorf wrote:
>
>> In ImageJ 1.38x, the behavior of the magnifying glass appears to be
>> inconsistent.  On occasion, using it without the shift key down will
>> make the image enlarge and the window grow larger.  However, on other
>> occasions, using it will zoom in on the image but not increase the
>> size of the window.  If the latter happens and I try again with the
>> shift key down, nothing happens--the magnifying glass has no effect
>> at all.  Other behavior seems normal; right-clicking will make the
>> window grow smaller as it zooms out.
>>
>> Anyone else seen this?  I'm using ImageJ under Windows XP SP2 and
>> Java 1.5.0_09.
>>
>> Thanks--
>>
>> Martin
>> --
>> Martin Wessendorf, Ph.D.                   office: (612) 626-0145
>> Assoc Prof, Dept Neuroscience                 lab: (612) 624-2991
>> University of Minnesota             Preferred FAX: (612) 624-8118
>> 6-145 Jackson Hall, 321 Church St. SE    Dept Fax: (612) 626-5009
>> Minneapolis, MN  55455             E-mail: martinw[at]med.umn.edu
>>


--
-----------------------------------------------
Dr. Joachim Walter

TILL I.D. GmbH
c\o BioImaging Zentrum
Großhaderner Str. 2
D-82152 Martinsried

Tel.: +49-89-2180-74189
Fax:  +49-89-2180-9974189
 
Geschäftsführer: Dr. Rainer Uhl
HRB 129399 Amtsgericht München
USt.-IdNr. DE 205045721
Reply | Threaded
Open this post in threaded view
|

Antwort: Re: magnifying glass in 1.38x resp. setMagnification and canvas size

Joachim Wesner
In reply to this post by Wayne Rasband
Hi there,

 I seem to remember to have seen this strange inconsistent behaviour too in
some very recent versions of IJ, however, cannot duplicate it in the moment
;-((!

I´m just struggling with a somewhat related problem when trying to
programmatically zoom a window, as already described by Tony Shepherd:

      The problem is I can change the canvas but not the window. If I go:

      imp.getWindow.getCanvas.setMagnification(2.0);

      imp.updateAndDraw();   ( ... OR imp.updateAndRepaintWindow();)

      then the magnified canvas is displayed inside a 'normal sized'
window, i.e.
      you just see the top-left portion of the bigger image and you have to
drag
      the  window from the bottom right corner to see the rest of it.


Repeatedly calling zoomIn works, though!

James Norman described a workaround that relies on calling setDrawingSize
from an overriden ImageCanvas IIRC, (does not seem to work if you simply
call it from the plugin code),
is there a more cleaner way?

Mit freundlichen Grüßen / Best regards

Joachim Wesner
Projektleiter Optik Technologiesysteme

Ernst Leitz Strasse 17-37 | 35578 Wetzlar (Germany)
Tel.  +49 6441 29 2611 | Fax +49 6441 29 2700

____________________________________________

Leica Microsystems CMS GmbH | GmbH mit Sitz in Wetzlar | Amtsgericht
Wetzlar  HRB 2432
Geschäftsführer: Dr. Martin Haase | Colin Davis | Dr. Wolf-Otto Reuter


                                                                           
             Wayne Rasband                                                
             <[hidden email]>                                                
             Gesendet von:                                              An
             ImageJ Interest            [hidden email]                
             Group                                                   Kopie
             <[hidden email].                                            
             GOV>                                                    Thema
                                        Re: magnifying glass in 1.38x      
                                                                           
             10.12.2007 23:06                                              
                                                                           
                                                                           
              Bitte antworten                                              
                    an                                                    
              ImageJ Interest                                              
                   Group                                                  
             <[hidden email].                                            
                   GOV>                                                    
                                                                           
                                                                           




The magnifying glass tool is obsolete. It is much more efficient to
press "+" to zoom in and "-" to zoom out. ImageJ will make the window
larger if there is room on the screen. Hold down the shift key and
press "+" to zoom in without enlarging the window. To scroll the image,
hold the space bar down and drag.

-wayne

On Dec 10, 2007, at 4:48 PM, Martin Wessendorf wrote:

> In ImageJ 1.38x, the behavior of the magnifying glass appears to be
> inconsistent.  On occasion, using it without the shift key down will
> make the image enlarge and the window grow larger.  However, on other
> occasions, using it will zoom in on the image but not increase the
> size of the window.  If the latter happens and I try again with the
> shift key down, nothing happens--the magnifying glass has no effect at
> all.  Other behavior seems normal; right-clicking will make the window
> grow smaller as it zooms out.
>
> Anyone else seen this?  I'm using ImageJ under Windows XP SP2 and Java
> 1.5.0_09.
>
> Thanks--
>
> Martin
> --
> Martin Wessendorf, Ph.D.                   office: (612) 626-0145
> Assoc Prof, Dept Neuroscience                 lab: (612) 624-2991
> University of Minnesota             Preferred FAX: (612) 624-8118
> 6-145 Jackson Hall, 321 Church St. SE    Dept Fax: (612) 626-5009
> Minneapolis, MN  55455             E-mail: martinw[at]med.umn.edu
>



______________________________________________________________________
This email has been scanned by the MessageLabs Email Security System.
For more information please visit http://www.messagelabs.com/email 
______________________________________________________________________
Reply | Threaded
Open this post in threaded view
|

Re: magnifying glass in 1.38x

Michael Schmid
In reply to this post by Joachim Walter
Hi Martin and others,

on my ImageJ 1.39k (Mac OSX) the magnifying glass behaves
exactly like the "+" and "-" keys for zooming.

With both methods of zooming, there is a feature that might
make it look inconsistent at the first glance:

When zooming in, ImageJ always extends the image to the bottom
and right, keeping the top left at the original position. The
window is enlarged only if there is enough space on the screen
for the enlarged window (current window size times the zoom
factor, leaving some extra space near the borders).
Otherwise, the window size remains fixed.

So an image well below half screen size will always get a larger
window by zooming in if it is placed at top left.
It won't get a larger window if placed near the bottom or right
borders of the screen.

Maybe this was the reason for the seemingly inconsistent
behavior?

Michael
________________________________________________________________

On 11 Dec 2007, at 10:15, Joachim Walter wrote:

> In ImageJ 1.38x, the behavior of the magnifying glass appears to be  
> inconsistent.  On occasion, using it without the shift key down  
> will make the image enlarge and the window grow larger.  However,  
> on other occasions, using it will zoom in on the image but not  
> increase the size of the window.  If the latter happens and I try  
> again with the shift key down, nothing happens--the magnifying  
> glass has no effect at all.  Other behavior seems normal; right-
> clicking will make the window grow smaller as it zooms out.
>
> Anyone else seen this?  I'm using ImageJ under Windows XP SP2 and  
> Java 1.5.0_09.
>
> Thanks--
>
> Martin
Reply | Threaded
Open this post in threaded view
|

Re: magnifying glass in 1.38x

Martin Wessendorf
Michael--

That was it exactly.  Amidst all the inconsistent behavior, what I
missed was the fact that I was moving the window.  As a result,
sometimes it seemed to work appropriately and sometimes it didn't.

Thanks!

Martin

Michael Schmid wrote:

> Hi Martin and others,
>
> on my ImageJ 1.39k (Mac OSX) the magnifying glass behaves
> exactly like the "+" and "-" keys for zooming.
>
> With both methods of zooming, there is a feature that might
> make it look inconsistent at the first glance:
>
> When zooming in, ImageJ always extends the image to the bottom
> and right, keeping the top left at the original position. The
> window is enlarged only if there is enough space on the screen
> for the enlarged window (current window size times the zoom
> factor, leaving some extra space near the borders).
> Otherwise, the window size remains fixed.
>
> So an image well below half screen size will always get a larger
> window by zooming in if it is placed at top left.
> It won't get a larger window if placed near the bottom or right
> borders of the screen.
>
> Maybe this was the reason for the seemingly inconsistent
> behavior?
>
> Michael
> ________________________________________________________________
>
> On 11 Dec 2007, at 10:15, Joachim Walter wrote:
>
>> In ImageJ 1.38x, the behavior of the magnifying glass appears to be
>> inconsistent.  On occasion, using it without the shift key down will
>> make the image enlarge and the window grow larger.  However, on other
>> occasions, using it will zoom in on the image but not increase the
>> size of the window.  If the latter happens and I try again with the
>> shift key down, nothing happens--the magnifying glass has no effect at
>> all.  Other behavior seems normal; right-clicking will make the window
>> grow smaller as it zooms out.
>>
>> Anyone else seen this?  I'm using ImageJ under Windows XP SP2 and Java
>> 1.5.0_09.
>>
>> Thanks--
>>
>> Martin
>
>

--
Martin Wessendorf, Ph.D.                   office: (612) 626-0145
Assoc Prof, Dept Neuroscience                 lab: (612) 624-2991
University of Minnesota             Preferred FAX: (612) 624-8118
6-145 Jackson Hall, 321 Church St. SE    Dept Fax: (612) 626-5009
Minneapolis, MN  55455             E-mail: martinw[at]med.umn.edu
Reply | Threaded
Open this post in threaded view
|

Re: magnifying glass in 1.38x

lechristophe
There is at least one reason to use the magnifying glass : with the
SyncWindows plugin from Joachim Walter, using the tool magnifies all the
synchronized windows, whereas using "+" or "-" magnifies only the active
window (the one that is actually clicked). Wether it is an inconsistency of
the plugin or a feature is questionnable, though.

On Dec 11, 2007 7:50 PM, Martin Wessendorf <[hidden email]> wrote:

> Michael--
>
> That was it exactly.  Amidst all the inconsistent behavior, what I
> missed was the fact that I was moving the window.  As a result,
> sometimes it seemed to work appropriately and sometimes it didn't.
>
> Thanks!
>
> Martin
>
> Michael Schmid wrote:
> > Hi Martin and others,
> >
> > on my ImageJ 1.39k (Mac OSX) the magnifying glass behaves
> > exactly like the "+" and "-" keys for zooming.
> >
> > With both methods of zooming, there is a feature that might
> > make it look inconsistent at the first glance:
> >
> > When zooming in, ImageJ always extends the image to the bottom
> > and right, keeping the top left at the original position. The
> > window is enlarged only if there is enough space on the screen
> > for the enlarged window (current window size times the zoom
> > factor, leaving some extra space near the borders).
> > Otherwise, the window size remains fixed.
> >
> > So an image well below half screen size will always get a larger
> > window by zooming in if it is placed at top left.
> > It won't get a larger window if placed near the bottom or right
> > borders of the screen.
> >
> > Maybe this was the reason for the seemingly inconsistent
> > behavior?
> >
> > Michael
> > ________________________________________________________________
> >
> > On 11 Dec 2007, at 10:15, Joachim Walter wrote:
> >
> >> In ImageJ 1.38x, the behavior of the magnifying glass appears to be
> >> inconsistent.  On occasion, using it without the shift key down will
> >> make the image enlarge and the window grow larger.  However, on other
> >> occasions, using it will zoom in on the image but not increase the
> >> size of the window.  If the latter happens and I try again with the
> >> shift key down, nothing happens--the magnifying glass has no effect at
> >> all.  Other behavior seems normal; right-clicking will make the window
> >> grow smaller as it zooms out.
> >>
> >> Anyone else seen this?  I'm using ImageJ under Windows XP SP2 and Java
> >> 1.5.0_09.
> >>
> >> Thanks--
> >>
> >> Martin
> >
> >
>
> --
> Martin Wessendorf, Ph.D.                   office: (612) 626-0145
> Assoc Prof, Dept Neuroscience                 lab: (612) 624-2991
> University of Minnesota             Preferred FAX: (612) 624-8118
> 6-145 Jackson Hall, 321 Church St. SE    Dept Fax: (612) 626-5009
> Minneapolis, MN  55455             E-mail: martinw[at]med.umn.edu
>