Login  Register

Re: Problem using ImageJ with touch-screen tablet

Posted by Jonathan Rosenthal on Nov 02, 2007; 7:11am
URL: http://imagej.273.s1.nabble.com/Problem-using-ImageJ-with-touch-screen-tablet-tp3698090p3698093.html

Thanks for your suggestions.  I actually haven't disabled swapping.  I
set the memory using the edit tab of ImageJ to various amounts, from
fairly low up to 750 mb of RAM, and they haven't affected the
problematic behavior.  Am I correct in assuming that the "-Xmx option"
you refer to is another way to change the same setting?  Also,
sometimes the program fails just when I'm attempting to change the size
of the image displayed (they've been displaying at 6 or 7% and when I
try to change the size to 100% the program fails), so I don't think
it's just a problem with the tablet's driver that enables the use of
the pen, although that might aggrevate things when I'm attempting to do
the line drawing.
           Thanks again,
           Jonathan

Quoting Justin McGrath <[hidden email]>:

> I have a tablet too, but it's a different model.  ImageJ works fine
> though.  Unless you have a lot of free memory, disabling swapping is
> quite possibly a bad idea.  Have you tried the -Xmx option to set the
> memory?  For instance -Xmx500m to allow Java to use 500 megabytes of
> RAM.
>
> Does it only fail when you use the stylus or does a mouse fail as
> well?  Perhaps there's an issue with your tablet drivers.
>
> Justin
>
>
> On 11/1/07, Toby Cornish <[hidden email]> wrote:
>> Dear Jonathan:
>>
>> I do not have experience with the tablet model you own, but I have
>> used a touchscreen Fujitsu Lifebook extensively for marking up
>> images for analysis.  It worked without a hitch.  Probably this is a
>> problem specifically with your Thinkpad and ImageJ or Java.
>>
>> If you think that swapping is a problem, you could disable it and
>> see if that helps (sometimes it will).  You could also try changing
>> the amount of memory that ImageJ has available.  You can use the
>> ImageJ memory monitor (Plugins | Utilities | Memory Monitor) to
>> check up on memory usage, too.
>>
>> Good luck,
>>
>> toby
>>
>>
>>
>>
>> Date:    Wed, 31 Oct 2007 15:38:25 -0400
>> From:    Jonathan Rosenthal <[hidden email]>
>> Subject: Problem using ImageJ with touch-screen tablet
>>
>> I've been trying unsuccessfully to use ImageJ on an IBM Thinkpad X41
>> tablet, in that soon after I touch the pen to the screen to draw some
>> necessary lines on scanned leaf images (in order to do assessments of
>> leaf area lost) I get an ImageJ error message saying that there's no
>> memory.  In fact, the tablet has a gig of RAM, so the problem is
>> probably due to the relatively slow access to the hard drive, hindering
>> swapping.  The OS is Windows XP tablet edition 2005 (version 2002)
>> Service Pack 2.  Have any of you had similar problems using ImageJ with
>> a tablet, and if so, how have you overcome them?
>>
>> A while back, I posted a query on assessing herbivory, and within a
>> short time got quite a few thoughtful and helpful responses, for which
>> I'm very grateful.  I'm hoping that you have a solution to the current
>> problem.
>>            Thanking you in advance,
>>            Jonathan Rosenthal
>>
>>
>> Toby C. Cornish, M.D., Ph.D.
>> Pathology Resident
>> Johns Hopkins Medical Institutions
>> [hidden email]
>>
>
>
>