drawing tools

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

drawing tools

Nilwik Rachel (BW)
Hi everyone,

This is probably a stupid question, but still, I don't know how to solve it, so perhaps anyone can help me...
I can't seem to be able to visualize the Drawing Tools in the Tools Bar on an Apple computer. I have been able to do this on a Windows pc, simply by clicking the 'arrow' button on the right in the ImageJ Tool Bar and choosing Drawing Tools from the drop-down list. However, when I do this on the Apple computer (on which ImageJ has just been installed today), there's less options to choose in this list and the Drawing Tools (and others) are not there.

Is there another way to visualize these Tools in the Tools bar?

Thanks,
rachel

--
ImageJ mailing list: http://imagej.nih.gov/ij/list.html
Reply | Threaded
Open this post in threaded view
|

Re: drawing tools

Michael Schmid
Hi Rachel,

maybe you have an old Version of ImageJ on the Mac?
Help > Update ImageJ

Note that the ImageJ 'Download' web page is not updated with each minor release, so always update ImageJ after downloading from the Web page.

Michael
________________________________________________________________
On Jul 10, 2012, at 12:03, Nilwik Rachel (BW) wrote:

> Hi everyone,
>
> This is probably a stupid question, but still, I don't know how to solve it, so perhaps anyone can help me...
> I can't seem to be able to visualize the Drawing Tools in the Tools Bar on an Apple computer. I have been able to do this on a Windows pc, simply by clicking the 'arrow' button on the right in the ImageJ Tool Bar and choosing Drawing Tools from the drop-down list. However, when I do this on the Apple computer (on which ImageJ has just been installed today), there's less options to choose in this list and the Drawing Tools (and others) are not there.
>
> Is there another way to visualize these Tools in the Tools bar?
>
> Thanks,
> rachel

--
ImageJ mailing list: http://imagej.nih.gov/ij/list.html
Reply | Threaded
Open this post in threaded view
|

Re: drawing tools

Nilwik Rachel (BW)
Hi Michael,

Thanks for the tip, I've tried it but it doesn't change anything.
Would it be possible to write something like a mini-macro that would have these functions (pencil/brush/eraser) displayed?

Rachel


-----Original Message-----
From: ImageJ Interest Group [mailto:[hidden email]] On Behalf Of Michael Schmid
Sent: Tuesday, July 10, 2012 12:08 PM
To: [hidden email]
Subject: Re: drawing tools

Hi Rachel,

maybe you have an old Version of ImageJ on the Mac?
Help > Update ImageJ

Note that the ImageJ 'Download' web page is not updated with each minor release, so always update ImageJ after downloading from the Web page.

Michael
________________________________________________________________
On Jul 10, 2012, at 12:03, Nilwik Rachel (BW) wrote:

> Hi everyone,
>
> This is probably a stupid question, but still, I don't know how to solve it, so perhaps anyone can help me...
> I can't seem to be able to visualize the Drawing Tools in the Tools Bar on an Apple computer. I have been able to do this on a Windows pc, simply by clicking the 'arrow' button on the right in the ImageJ Tool Bar and choosing Drawing Tools from the drop-down list. However, when I do this on the Apple computer (on which ImageJ has just been installed today), there's less options to choose in this list and the Drawing Tools (and others) are not there.
>
> Is there another way to visualize these Tools in the Tools bar?
>
> Thanks,
> rachel

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

--
ImageJ mailing list: http://imagej.nih.gov/ij/list.html
Reply | Threaded
Open this post in threaded view
|

Re: drawing tools

Barry DeZonia
The ImageJ User Guide has a bit about custom toolsets here:

http://rsbweb.nih.gov/ij/docs/guide/146-20.html

Maybe this can help you do what you want.

On Tue, Jul 10, 2012 at 5:20 AM, Nilwik Rachel (BW) <
[hidden email]> wrote:

> Hi Michael,
>
> Thanks for the tip, I've tried it but it doesn't change anything.
> Would it be possible to write something like a mini-macro that would have
> these functions (pencil/brush/eraser) displayed?
>
> Rachel
>
>
> -----Original Message-----
> From: ImageJ Interest Group [mailto:[hidden email]] On Behalf Of
> Michael Schmid
> Sent: Tuesday, July 10, 2012 12:08 PM
> To: [hidden email]
> Subject: Re: drawing tools
>
> Hi Rachel,
>
> maybe you have an old Version of ImageJ on the Mac?
> Help > Update ImageJ
>
> Note that the ImageJ 'Download' web page is not updated with each minor
> release, so always update ImageJ after downloading from the Web page.
>
> Michael
> ________________________________________________________________
> On Jul 10, 2012, at 12:03, Nilwik Rachel (BW) wrote:
>
> > Hi everyone,
> >
> > This is probably a stupid question, but still, I don't know how to solve
> it, so perhaps anyone can help me...
> > I can't seem to be able to visualize the Drawing Tools in the Tools Bar
> on an Apple computer. I have been able to do this on a Windows pc, simply
> by clicking the 'arrow' button on the right in the ImageJ Tool Bar and
> choosing Drawing Tools from the drop-down list. However, when I do this on
> the Apple computer (on which ImageJ has just been installed today), there's
> less options to choose in this list and the Drawing Tools (and others) are
> not there.
> >
> > Is there another way to visualize these Tools in the Tools bar?
> >
> > Thanks,
> > rachel
>
> --
> ImageJ mailing list: http://imagej.nih.gov/ij/list.html
>
> --
> ImageJ mailing list: http://imagej.nih.gov/ij/list.html
>

--
ImageJ mailing list: http://imagej.nih.gov/ij/list.html
Reply | Threaded
Open this post in threaded view
|

Re: drawing tools

Michael Schmid
In reply to this post by Nilwik Rachel (BW)
Hi Rachel,

yes, yopu are right, my fault, I was not aware about the recent changes to ImageJ:

Most of the toolsets don't come automatically with ImageJ, they are in ImageJ/Macros/Toolsets.
Previously, there was a toolset 'DrawingTools.txt', doing the drawing functions as a macro, but this was slow. Therefore, sometimes it did not follow the drawer's hand (mouse).  So there is something better now:

The drawing tools are now based on ij.plugin.tool.BrushTool.java, inside ImageJ, thus much faster.
These tools are not installed during startup.
You can install them with the ">>" field at the right end of the Toolbar; below the first dividing line you will find various drawing tools.

Up to now, I did not find a way to install my favorite set via the StartupMacros, however. Maybe someone else knows how to do it?


Michael
________________________________________________________________
On Jul 10, 2012, at 12:20, Nilwik Rachel (BW) wrote:

> Hi Michael,
>
> Thanks for the tip, I've tried it but it doesn't change anything.
> Would it be possible to write something like a mini-macro that would have these functions (pencil/brush/eraser) displayed?
>
> Rachel
>
>
> -----Original Message-----
> From: ImageJ Interest Group [mailto:[hidden email]] On Behalf Of Michael Schmid
> Sent: Tuesday, July 10, 2012 12:08 PM
> To: [hidden email]
> Subject: Re: drawing tools
>
> Hi Rachel,
>
> maybe you have an old Version of ImageJ on the Mac?
> Help > Update ImageJ
>
> Note that the ImageJ 'Download' web page is not updated with each minor release, so always update ImageJ after downloading from the Web page.
>
> Michael
> ________________________________________________________________
> On Jul 10, 2012, at 12:03, Nilwik Rachel (BW) wrote:
>
>> Hi everyone,
>>
>> This is probably a stupid question, but still, I don't know how to solve it, so perhaps anyone can help me...
>> I can't seem to be able to visualize the Drawing Tools in the Tools Bar on an Apple computer. I have been able to do this on a Windows pc, simply by clicking the 'arrow' button on the right in the ImageJ Tool Bar and choosing Drawing Tools from the drop-down list. However, when I do this on the Apple computer (on which ImageJ has just been installed today), there's less options to choose in this list and the Drawing Tools (and others) are not there.
>>
>> Is there another way to visualize these Tools in the Tools bar?
>>
>> Thanks,
>> rachel
>
> --
> ImageJ mailing list: http://imagej.nih.gov/ij/list.html
>
> --
> ImageJ mailing list: http://imagej.nih.gov/ij/list.html

--
ImageJ mailing list: http://imagej.nih.gov/ij/list.html
Reply | Threaded
Open this post in threaded view
|

Re: drawing tools

Michael Schmid
Hi Everyone,

in the meanwhile I found a way to have a set of ImageJ built-in tools defined in my StartupMacros.txt:
One can set the corresponding Preferences:

macro "AutoRun" {
  call("ij.Prefs.set", "toolbar.tool02", "Pencil Tool");
  call("ij.Prefs.set", "toolbar.tool03", "Overlay Brush Tool");
  call("ij.Prefs.set", "toolbar.tool04", "Flood Filler Tool");
  call("ij.Prefs.set", "toolbar.tool05", "Pixel Inspector Tool");
}

It seems that any tools defined elsewhere in StartupMacros.txt are replaced by the tools defined via the Prefs.
Thus, if you have tool macros in your StartupMacros.txt, you have to leave space for them. In my case, I have two such tools, so I start with "toolbar.tool02" instead of "toolbar.tool00"

Michael
________________________________________________________________
On Jul 10, 2012, at 18:16, Michael Schmid wrote:

> Hi Rachel,
>
> yes, yopu are right, my fault, I was not aware about the recent changes to ImageJ:
>
> Most of the toolsets don't come automatically with ImageJ, they are in ImageJ/Macros/Toolsets.
> Previously, there was a toolset 'DrawingTools.txt', doing the drawing functions as a macro, but this was slow. Therefore, sometimes it did not follow the drawer's hand (mouse).  So there is something better now:
>
> The drawing tools are now based on ij.plugin.tool.BrushTool.java, inside ImageJ, thus much faster.
> These tools are not installed during startup.
> You can install them with the ">>" field at the right end of the Toolbar; below the first dividing line you will find various drawing tools.
>
> Up to now, I did not find a way to install my favorite set via the StartupMacros, however. Maybe someone else knows how to do it?
>
>
> Michael
> ________________________________________________________________
> On Jul 10, 2012, at 12:20, Nilwik Rachel (BW) wrote:
>
>> Hi Michael,
>>
>> Thanks for the tip, I've tried it but it doesn't change anything.
>> Would it be possible to write something like a mini-macro that would have these functions (pencil/brush/eraser) displayed?
>>
>> Rachel
>>
>>
>> -----Original Message-----
>> From: ImageJ Interest Group [mailto:[hidden email]] On Behalf Of Michael Schmid
>> Sent: Tuesday, July 10, 2012 12:08 PM
>> To: [hidden email]
>> Subject: Re: drawing tools
>>
>> Hi Rachel,
>>
>> maybe you have an old Version of ImageJ on the Mac?
>> Help > Update ImageJ
>>
>> Note that the ImageJ 'Download' web page is not updated with each minor release, so always update ImageJ after downloading from the Web page.
>>
>> Michael
>> ________________________________________________________________
>> On Jul 10, 2012, at 12:03, Nilwik Rachel (BW) wrote:
>>
>>> Hi everyone,
>>>
>>> This is probably a stupid question, but still, I don't know how to solve it, so perhaps anyone can help me...
>>> I can't seem to be able to visualize the Drawing Tools in the Tools Bar on an Apple computer. I have been able to do this on a Windows pc, simply by clicking the 'arrow' button on the right in the ImageJ Tool Bar and choosing Drawing Tools from the drop-down list. However, when I do this on the Apple computer (on which ImageJ has just been installed today), there's less options to choose in this list and the Drawing Tools (and others) are not there.
>>>
>>> Is there another way to visualize these Tools in the Tools bar?
>>>
>>> Thanks,
>>> rachel
>>
>> --
>> ImageJ mailing list: http://imagej.nih.gov/ij/list.html
>>
>> --
>> ImageJ mailing list: http://imagej.nih.gov/ij/list.html
>

--
ImageJ mailing list: http://imagej.nih.gov/ij/list.html
Reply | Threaded
Open this post in threaded view
|

Re: drawing tools

Nilwik Rachel (BW)
Thanks Michael!
That's a very convenient way to customize the way tools are shown at startup.
In the mean time I found out as well (actually, Wayne suggested this) that the Drawing Tools were not present in the Toolset folder. I just copied it in, and the problem was solved!

However, when using the brush tool, something seems to go wrong still. On the Apple machine, it works fine until I try to use the brush as an eraser, by pressing the Alt button. When I then proceed (so, click and drag to erase something), it erases everything that has been drawn until then, using the brush. This cannot be undone. I have solved this by using the eraser tool, but I can imagine this is not the way it should be.
On the Windows pc, it works fine, by the way.

Grs rachel




-----Original Message-----
From: ImageJ Interest Group [mailto:[hidden email]] On Behalf Of Michael Schmid
Sent: Tuesday, July 10, 2012 8:00 PM
To: [hidden email]
Subject: Re: drawing tools

Hi Everyone,

in the meanwhile I found a way to have a set of ImageJ built-in tools defined in my StartupMacros.txt:
One can set the corresponding Preferences:

macro "AutoRun" {
  call("ij.Prefs.set", "toolbar.tool02", "Pencil Tool");
  call("ij.Prefs.set", "toolbar.tool03", "Overlay Brush Tool");
  call("ij.Prefs.set", "toolbar.tool04", "Flood Filler Tool");
  call("ij.Prefs.set", "toolbar.tool05", "Pixel Inspector Tool"); }

It seems that any tools defined elsewhere in StartupMacros.txt are replaced by the tools defined via the Prefs.
Thus, if you have tool macros in your StartupMacros.txt, you have to leave space for them. In my case, I have two such tools, so I start with "toolbar.tool02" instead of "toolbar.tool00"

Michael
________________________________________________________________
On Jul 10, 2012, at 18:16, Michael Schmid wrote:

> Hi Rachel,
>
> yes, yopu are right, my fault, I was not aware about the recent changes to ImageJ:
>
> Most of the toolsets don't come automatically with ImageJ, they are in ImageJ/Macros/Toolsets.
> Previously, there was a toolset 'DrawingTools.txt', doing the drawing functions as a macro, but this was slow. Therefore, sometimes it did not follow the drawer's hand (mouse).  So there is something better now:
>
> The drawing tools are now based on ij.plugin.tool.BrushTool.java, inside ImageJ, thus much faster.
> These tools are not installed during startup.
> You can install them with the ">>" field at the right end of the Toolbar; below the first dividing line you will find various drawing tools.
>
> Up to now, I did not find a way to install my favorite set via the StartupMacros, however. Maybe someone else knows how to do it?
>
>
> Michael
> ________________________________________________________________
> On Jul 10, 2012, at 12:20, Nilwik Rachel (BW) wrote:
>
>> Hi Michael,
>>
>> Thanks for the tip, I've tried it but it doesn't change anything.
>> Would it be possible to write something like a mini-macro that would have these functions (pencil/brush/eraser) displayed?
>>
>> Rachel
>>
>>
>> -----Original Message-----
>> From: ImageJ Interest Group [mailto:[hidden email]] On Behalf Of
>> Michael Schmid
>> Sent: Tuesday, July 10, 2012 12:08 PM
>> To: [hidden email]
>> Subject: Re: drawing tools
>>
>> Hi Rachel,
>>
>> maybe you have an old Version of ImageJ on the Mac?
>> Help > Update ImageJ
>>
>> Note that the ImageJ 'Download' web page is not updated with each minor release, so always update ImageJ after downloading from the Web page.
>>
>> Michael
>> ________________________________________________________________
>> On Jul 10, 2012, at 12:03, Nilwik Rachel (BW) wrote:
>>
>>> Hi everyone,
>>>
>>> This is probably a stupid question, but still, I don't know how to solve it, so perhaps anyone can help me...
>>> I can't seem to be able to visualize the Drawing Tools in the Tools Bar on an Apple computer. I have been able to do this on a Windows pc, simply by clicking the 'arrow' button on the right in the ImageJ Tool Bar and choosing Drawing Tools from the drop-down list. However, when I do this on the Apple computer (on which ImageJ has just been installed today), there's less options to choose in this list and the Drawing Tools (and others) are not there.
>>>
>>> Is there another way to visualize these Tools in the Tools bar?
>>>
>>> Thanks,
>>> rachel
>>
>> --
>> ImageJ mailing list: http://imagej.nih.gov/ij/list.html
>>
>> --
>> ImageJ mailing list: http://imagej.nih.gov/ij/list.html
>

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

--
ImageJ mailing list: http://imagej.nih.gov/ij/list.html
Reply | Threaded
Open this post in threaded view
|

Re: drawing tools

Michael Schmid
Hi Rachel,

Do you refer to some version of the legacy 'Drawing tools' in ImageJ>Macros>Toolsets?
This one had a nasty trick to determine the background color, dating back to the days before there was a getValue("color.background") macro command. I can't reproduce your problem (it would require the 'Clear' command to , but in principle I can imagine that your problem occurs when for some reason the 'Clear' commands fails to create a snapshot.
In such a case, pixel (0,0) of the image (top left corner) would be set to the background color by alt-Brush. Do you observe this?

I don't think that such problem could occur with the new (Java) plugin tools, i.e., those that are isolated items in the '>>' menu and have the tips of the icon filled with the current foreground color.

---

The only problem that I have seen with the new tools and the alt key is the following:

It seems that there is an (undocumented?) feature, causing overlays to be movable by alt-dragging with any tool (selection, zoom, color picker, including the Brush and Pencil tools); nevertheless the current tool does its normal function.
Area overlays are moved quite easily (e.g. an overlay created from an area selection by 'create overlay'.  For non-area overlays such as lines drawn by the Overlay Brush, it is almost impossible to hit them by alt-clicking dead on their center line and dragging, except in a rare cases, typically when this is not intended...


Michael
________________________________________________________________


On Jul 11, 2012, at 10:03, Nilwik Rachel (BW) wrote:

> Thanks Michael!
> That's a very convenient way to customize the way tools are shown at startup.
> In the mean time I found out as well (actually, Wayne suggested this) that the Drawing Tools were not present in the Toolset folder. I just copied it in, and the problem was solved!
>
> However, when using the brush tool, something seems to go wrong still. On the Apple machine, it works fine until I try to use the brush as an eraser, by pressing the Alt button. When I then proceed (so, click and drag to erase something), it erases everything that has been drawn until then, using the brush. This cannot be undone. I have solved this by using the eraser tool, but I can imagine this is not the way it should be.
> On the Windows pc, it works fine, by the way.
>
> Grs rachel
>
>
>
>
> -----Original Message-----
> From: ImageJ Interest Group [mailto:[hidden email]] On Behalf Of Michael Schmid
> Sent: Tuesday, July 10, 2012 8:00 PM
> To: [hidden email]
> Subject: Re: drawing tools
>
> Hi Everyone,
>
> in the meanwhile I found a way to have a set of ImageJ built-in tools defined in my StartupMacros.txt:
> One can set the corresponding Preferences:
>
> macro "AutoRun" {
>  call("ij.Prefs.set", "toolbar.tool02", "Pencil Tool");
>  call("ij.Prefs.set", "toolbar.tool03", "Overlay Brush Tool");
>  call("ij.Prefs.set", "toolbar.tool04", "Flood Filler Tool");
>  call("ij.Prefs.set", "toolbar.tool05", "Pixel Inspector Tool"); }
>
> It seems that any tools defined elsewhere in StartupMacros.txt are replaced by the tools defined via the Prefs.
> Thus, if you have tool macros in your StartupMacros.txt, you have to leave space for them. In my case, I have two such tools, so I start with "toolbar.tool02" instead of "toolbar.tool00"
>
> Michael
> ________________________________________________________________
> On Jul 10, 2012, at 18:16, Michael Schmid wrote:
>
>> Hi Rachel,
>>
>> yes, yopu are right, my fault, I was not aware about the recent changes to ImageJ:
>>
>> Most of the toolsets don't come automatically with ImageJ, they are in ImageJ/Macros/Toolsets.
>> Previously, there was a toolset 'DrawingTools.txt', doing the drawing functions as a macro, but this was slow. Therefore, sometimes it did not follow the drawer's hand (mouse).  So there is something better now:
>>
>> The drawing tools are now based on ij.plugin.tool.BrushTool.java, inside ImageJ, thus much faster.
>> These tools are not installed during startup.
>> You can install them with the ">>" field at the right end of the Toolbar; below the first dividing line you will find various drawing tools.
>>
>> Up to now, I did not find a way to install my favorite set via the StartupMacros, however. Maybe someone else knows how to do it?
>>
>>
>> Michael
>> ________________________________________________________________
>> On Jul 10, 2012, at 12:20, Nilwik Rachel (BW) wrote:
>>
>>> Hi Michael,
>>>
>>> Thanks for the tip, I've tried it but it doesn't change anything.
>>> Would it be possible to write something like a mini-macro that would have these functions (pencil/brush/eraser) displayed?
>>>
>>> Rachel
>>>
>>>
>>> -----Original Message-----
>>> From: ImageJ Interest Group [mailto:[hidden email]] On Behalf Of
>>> Michael Schmid
>>> Sent: Tuesday, July 10, 2012 12:08 PM
>>> To: [hidden email]
>>> Subject: Re: drawing tools
>>>
>>> Hi Rachel,
>>>
>>> maybe you have an old Version of ImageJ on the Mac?
>>> Help > Update ImageJ
>>>
>>> Note that the ImageJ 'Download' web page is not updated with each minor release, so always update ImageJ after downloading from the Web page.
>>>
>>> Michael
>>> ________________________________________________________________
>>> On Jul 10, 2012, at 12:03, Nilwik Rachel (BW) wrote:
>>>
>>>> Hi everyone,
>>>>
>>>> This is probably a stupid question, but still, I don't know how to solve it, so perhaps anyone can help me...
>>>> I can't seem to be able to visualize the Drawing Tools in the Tools Bar on an Apple computer. I have been able to do this on a Windows pc, simply by clicking the 'arrow' button on the right in the ImageJ Tool Bar and choosing Drawing Tools from the drop-down list. However, when I do this on the Apple computer (on which ImageJ has just been installed today), there's less options to choose in this list and the Drawing Tools (and others) are not there.
>>>>
>>>> Is there another way to visualize these Tools in the Tools bar?
>>>>
>>>> Thanks,
>>>> rachel
>>>
>>> --
>>> ImageJ mailing list: http://imagej.nih.gov/ij/list.html
>>>
>>> --
>>> ImageJ mailing list: http://imagej.nih.gov/ij/list.html
>>
>
> --
> ImageJ mailing list: http://imagej.nih.gov/ij/list.html
>
> --
> ImageJ mailing list: http://imagej.nih.gov/ij/list.html

--
ImageJ mailing list: http://imagej.nih.gov/ij/list.html
Reply | Threaded
Open this post in threaded view
|

Re: drawing tools

Tiago Ferreira-2
Hi Michael, Rachel

> It seems that there is an (undocumented?) feature, causing overlays to be
> movable by alt-dragging with any tool (selection, zoom, color picker, including
> the Brush and Pencil tools);

This is indeed documented (see e.g., Storage of ROIs description in
<http://imagej.nih.gov/ij/docs/guide/146-11.html>. Overlays are re-activated by
Alt-clicking, Control-clicking or long-pressing since 1.46m.

You are right: it can be cumbersome to use the drawing tools while holding Alt
when overlays are present. Right now the only "solutions" (not-really) that come
to my mind are:

1) Start the alt-dragging outside the overlay (the overlay won't be activated
when intersected in this case)

2) Since it is quite easy (with Shift-click) to modify the diameter of the
drawing tool, keep one tool (e.g., "Brush"), in foreground color, and another in
foreground (e.g., pencil). The shuttling between the two could then be done
using keyboard shortcuts, as described here:
<http://imagej.nih.gov/ij/docs/guide/146-35.html>

> I don't think that such problem could occur with the new (Java) plugin tools

I would also refrain from using the legacy "Drawing Tools.txt" toolset. The new
java tools are more responsive and feature the mentioned Shift-modification
proposed by Gabriel some months ago on this list.

I wonder if it would be possible to load the "AutoRun" macro you suggested on
from a toolset so it could install all the drawing tools at once (right now the
user has to choose 'Remove Tools' from the 'More Tools' menu, then build the
toolset one tool at the time. The IJ prefs mechanism could be used to keep track
of the previous toolset for easy restoration of the previous Toolbar state.

I guess the easiest (and ugliest) way would be to compile single copies of the
Java tools outside ij.jar so that then could be loaded from a macro?

-tiago
--
ImageJ mailing list: http://imagej.nih.gov/ij/list.html
Reply | Threaded
Open this post in threaded view
|

Re: drawing tools

Nilwik Rachel (BW)
Thank you both Michael and Tiago, for your information. I'm completely novel to programming/reading programs/software-related trouble shooting and so on, so learning many new things here :)



Indeed, when I was referring to the Drawing Tools, it was the old version I was talking about. I'm analyzing 4-channel fluorescent images, and while I need to make some adjustments in one channel, I use an RGB as a (transparent) overlay to keep track of what I'm doing in the whole image. Indeed, I've had some trouble with background and foreground color in the past, which I had solved by inverting the image...



So now, I've tried using the new version of the drawing tools. When using the brush, including the Alt button to change from foreground to background color, the overlay is always there (since it is as large as the image itself) and I will always be moving that around, instead of removing something that needs to be removed. In addition, the color of the brush does not change from foreground to background color, so I'm actually messing up the whole image.



However, your solution of using the pencil and brush and foreground and background color drawing tools works well, so thank you for that! I will now indeed try to make sure they are already loaded in the tool bar at startup, and indeed using the correct color (so one of them black and the other one white).



Thanks again,

Rachel







-----Original Message-----
From: Tiago Ferreira [mailto:[hidden email]]
Sent: Wednesday, July 11, 2012 4:59 PM
To: [hidden email]
Cc: Michael Schmid; Nilwik Rachel (BW)
Subject: Re: drawing tools



Hi Michael, Rachel



> It seems that there is an (undocumented?) feature, causing overlays to be movable by alt-dragging with any tool (selection, zoom, color

> picker, including the Brush and Pencil tools);



This is indeed documented (see e.g., Storage of ROIs description in <http://imagej.nih.gov/ij/docs/guide/146-11.html>. Overlays are re-activated by Alt-clicking, Control-clicking or long-pressing since 1.46m.



You are right: it can be cumbersome to use the drawing tools while holding Alt when overlays are present. Right now the only "solutions" (not-really) that come to my mind are:



1) Start the alt-dragging outside the overlay (the overlay won't be activated when intersected in this case)



2) Since it is quite easy (with Shift-click) to modify the diameter of the drawing tool, keep one tool (e.g., "Brush"), in foreground color, and another in foreground (e.g., pencil). The shuttling between the two could then be done using keyboard shortcuts, as described here:

http://imagej.nih.gov/ij/docs/guide/146-35.html>



> I don't think that such problem could occur with the new (Java) plugin tools



I would also refrain from using the legacy "Drawing Tools.txt" toolset. The new java tools are more responsive and feature the mentioned Shift-modification proposed by Gabriel some months ago on this list.



I wonder if it would be possible to load the "AutoRun" macro you suggested on from a toolset so it could install all the drawing tools at once (right now the user has to choose 'Remove Tools' from the 'More Tools' menu, then build the toolset one tool at the time. The IJ prefs mechanism could be used to keep track of the previous toolset for easy restoration of the previous Toolbar state.



I guess the easiest (and ugliest) way would be to compile single copies of the Java tools outside ij.jar so that then could be loaded from a macro?



-tiago

--
ImageJ mailing list: http://imagej.nih.gov/ij/list.html
Reply | Threaded
Open this post in threaded view
|

Re: drawing tools

Rasband, Wayne (NIH/NIMH) [E]
On Jul 12, 2012, at 3:34 AM, Nilwik Rachel (BW) wrote:

> Thank you both Michael and Tiago, for your information. I'm completely novel to programming/reading programs/software-related trouble shooting and so on, so learning many new things here :)
>
> Indeed, when I was referring to the Drawing Tools, it was the old version I was talking about. I'm analyzing 4-channel fluorescent images, and while I need to make some adjustments in one channel, I use an RGB as a (transparent) overlay to keep track of what I'm doing in the whole image. Indeed, I've had some trouble with background and foreground color in the past, which I had solved by inverting the image...
>
> So now, I've tried using the new version of the drawing tools. When using the brush, including the Alt button to change from foreground to background color, the overlay is always there (since it is as large as the image itself) and I will always be moving that around, instead of removing something that needs to be removed. In addition, the color of the brush does not change from foreground to background color, so I'm actually messing up the whole image.

This bug is fixed in the ImageJ 1.47a daily build. Long-pressing or alt-clicking with the brush or pencil tools no longer activates overlay selections. The daily build also allows built-in tools and plugin tools to be added to toolsets and the startup macros. There is an example at

   http://imagej.nih.gov/ij/macros/toolsets/Built-in%20Tools.txt

And, thanks to Thomas Boudier, the daily build has five new 3D filters (Median, Mean, Minimum, Maximum and Variance) in the Process>Filters submenu.

-wayne


> However, your solution of using the pencil and brush and foreground and background color drawing tools works well, so thank you for that! I will now indeed try to make sure they are already loaded in the tool bar at startup, and indeed using the correct color (so one of them black and the other one white).
>
>
>
> Thanks again,
>
> Rachel
>
>
>
>
>
>
>
> -----Original Message-----
> From: Tiago Ferreira [mailto:[hidden email]]
> Sent: Wednesday, July 11, 2012 4:59 PM
> To: [hidden email]
> Cc: Michael Schmid; Nilwik Rachel (BW)
> Subject: Re: drawing tools
>
>
>
> Hi Michael, Rachel
>
>
>
>> It seems that there is an (undocumented?) feature, causing overlays to be movable by alt-dragging with any tool (selection, zoom, color
>
>> picker, including the Brush and Pencil tools);
>
>
>
> This is indeed documented (see e.g., Storage of ROIs description in <http://imagej.nih.gov/ij/docs/guide/146-11.html>. Overlays are re-activated by Alt-clicking, Control-clicking or long-pressing since 1.46m.
>
>
>
> You are right: it can be cumbersome to use the drawing tools while holding Alt when overlays are present. Right now the only "solutions" (not-really) that come to my mind are:
>
>
>
> 1) Start the alt-dragging outside the overlay (the overlay won't be activated when intersected in this case)
>
>
>
> 2) Since it is quite easy (with Shift-click) to modify the diameter of the drawing tool, keep one tool (e.g., "Brush"), in foreground color, and another in foreground (e.g., pencil). The shuttling between the two could then be done using keyboard shortcuts, as described here:
>
> http://imagej.nih.gov/ij/docs/guide/146-35.html>
>
>
>
>> I don't think that such problem could occur with the new (Java) plugin tools
>
>
>
> I would also refrain from using the legacy "Drawing Tools.txt" toolset. The new java tools are more responsive and feature the mentioned Shift-modification proposed by Gabriel some months ago on this list.
>
>
>
> I wonder if it would be possible to load the "AutoRun" macro you suggested on from a toolset so it could install all the drawing tools at once (right now the user has to choose 'Remove Tools' from the 'More Tools' menu, then build the toolset one tool at the time. The IJ prefs mechanism could be used to keep track of the previous toolset for easy restoration of the previous Toolbar state.
>
>
>
> I guess the easiest (and ugliest) way would be to compile single copies of the Java tools outside ij.jar so that then could be loaded from a macro?
>
>
>
> -tiago
>
> --
> ImageJ mailing list: http://imagej.nih.gov/ij/list.html

--
ImageJ mailing list: http://imagej.nih.gov/ij/list.html
Reply | Threaded
Open this post in threaded view
|

Re: drawing tools

Rasband, Wayne (NIH/NIMH) [E]
In reply to this post by Michael Schmid
On Jul 10, 2012, at 2:00 PM, Michael Schmid wrote:

> Hi Everyone,
>
> in the meanwhile I found a way to have a set of ImageJ built-in tools defined in my StartupMacros.txt:
> One can set the corresponding Preferences:
>
> macro "AutoRun" {
>  call("ij.Prefs.set", "toolbar.tool02", "Pencil Tool");
>  call("ij.Prefs.set", "toolbar.tool03", "Overlay Brush Tool");
>  call("ij.Prefs.set", "toolbar.tool04", "Flood Filler Tool");
>  call("ij.Prefs.set", "toolbar.tool05", "Pixel Inspector Tool");
> }
>
> It seems that any tools defined elsewhere in StartupMacros.txt are replaced by the tools defined via the Prefs.
> Thus, if you have tool macros in your StartupMacros.txt, you have to leave space for them. In my case, I have two such tools, so I start with "toolbar.tool02" instead of "toolbar.tool00"

In the ImageJ 1.47a daily build, these four built-in tools can be installed via StartupMacros.txt using this code:

  macro "Pencil Built-in Tool" {}
  macro "Overlay Brush Built-in Tool" {}
  macro "Flood Filler Built-in Tool" {}
  macro "Pixel Inspector Built-in Tool" {}

-wayne


> ________________________________________________________________
> On Jul 10, 2012, at 18:16, Michael Schmid wrote:
>
>> Hi Rachel,
>>
>> yes, yopu are right, my fault, I was not aware about the recent changes to ImageJ:
>>
>> Most of the toolsets don't come automatically with ImageJ, they are in ImageJ/Macros/Toolsets.
>> Previously, there was a toolset 'DrawingTools.txt', doing the drawing functions as a macro, but this was slow. Therefore, sometimes it did not follow the drawer's hand (mouse).  So there is something better now:
>>
>> The drawing tools are now based on ij.plugin.tool.BrushTool.java, inside ImageJ, thus much faster.
>> These tools are not installed during startup.
>> You can install them with the ">>" field at the right end of the Toolbar; below the first dividing line you will find various drawing tools.
>>
>> Up to now, I did not find a way to install my favorite set via the StartupMacros, however. Maybe someone else knows how to do it?
>>
>>
>> Michael
>> ________________________________________________________________
>> On Jul 10, 2012, at 12:20, Nilwik Rachel (BW) wrote:
>>
>>> Hi Michael,
>>>
>>> Thanks for the tip, I've tried it but it doesn't change anything.
>>> Would it be possible to write something like a mini-macro that would have these functions (pencil/brush/eraser) displayed?
>>>
>>> Rachel
>>>
>>>
>>> -----Original Message-----
>>> From: ImageJ Interest Group [mailto:[hidden email]] On Behalf Of Michael Schmid
>>> Sent: Tuesday, July 10, 2012 12:08 PM
>>> To: [hidden email]
>>> Subject: Re: drawing tools
>>>
>>> Hi Rachel,
>>>
>>> maybe you have an old Version of ImageJ on the Mac?
>>> Help > Update ImageJ
>>>
>>> Note that the ImageJ 'Download' web page is not updated with each minor release, so always update ImageJ after downloading from the Web page.
>>>
>>> Michael
>>> ________________________________________________________________
>>> On Jul 10, 2012, at 12:03, Nilwik Rachel (BW) wrote:
>>>
>>>> Hi everyone,
>>>>
>>>> This is probably a stupid question, but still, I don't know how to solve it, so perhaps anyone can help me...
>>>> I can't seem to be able to visualize the Drawing Tools in the Tools Bar on an Apple computer. I have been able to do this on a Windows pc, simply by clicking the 'arrow' button on the right in the ImageJ Tool Bar and choosing Drawing Tools from the drop-down list. However, when I do this on the Apple computer (on which ImageJ has just been installed today), there's less options to choose in this list and the Drawing Tools (and others) are not there.
>>>>
>>>> Is there another way to visualize these Tools in the Tools bar?
>>>>
>>>> Thanks,
>>>> rachel
>>>
>>> --
>>> ImageJ mailing list: http://imagej.nih.gov/ij/list.html
>>>
>>> --
>>> ImageJ mailing list: http://imagej.nih.gov/ij/list.html
>>
>
> --
> ImageJ mailing list: http://imagej.nih.gov/ij/list.html

--
ImageJ mailing list: http://imagej.nih.gov/ij/list.html
Reply | Threaded
Open this post in threaded view
|

Re: drawing tools - wish item

Gabriel Landini
On Sunday 15 Jul 2012 05:53:38 you wrote:
> On Jul 10, 2012, at 2:00 PM, Michael Schmid wrote:
> In the ImageJ 1.47a daily build, these four built-in tools can be installed
> via StartupMacros.txt using this code:
>
>   macro "Pencil Built-in Tool" {}
>   macro "Overlay Brush Built-in Tool" {}
>   macro "Flood Filler Built-in Tool" {}
>   macro "Pixel Inspector Built-in Tool" {}

Would it be a good idea for these tools (which are much smoother than the
macro based ones), when one clicks+ctrl (or other) to retrieve the colour
under the cursor to be set as foreground?
This saves a lot going forwards and backwards to the colour picker tool
button.THis way:
Shift-drag changes the cursor size
Ctrl selects the foreground colour
Alt draws/paints in the background colour.

Cheers

Gabriel

--
ImageJ mailing list: http://imagej.nih.gov/ij/list.html
Reply | Threaded
Open this post in threaded view
|

Re: drawing tools - wish item

Michael Schmid
Hi everyone,

as we have these nice new tools, one more point, from my wishlist:
In most programs, SHIFT constrains the motion to horizontal or vertical;
this would be a very handy feature for ImageJ as well!

Maybe, as long as people are not used too much to the new tools, it would
not hurt to change them to CTRL-SHIFT or ALT-SHIFT for resizing the brush?

[on Macs, as usual, CTRL would have to be replaced by Command key, CTRL
brings up the context menu]

Any objections?

Michael
____________________________________________________________________

On Sun, July 15, 2012 20:05, Gabriel Landini wrote:

>
> Would it be a good idea for these tools (which are much smoother than the
> macro based ones), when one clicks+ctrl (or other) to retrieve the colour
> under the cursor to be set as foreground?
> This saves a lot going forwards and backwards to the colour picker tool
> button.THis way:
> Shift-drag changes the cursor size
> Ctrl selects the foreground colour
> Alt draws/paints in the background colour.
>
> Cheers
>
> Gabriel
>
> --
> ImageJ mailing list: http://imagej.nih.gov/ij/list.html
>

--
ImageJ mailing list: http://imagej.nih.gov/ij/list.html
Reply | Threaded
Open this post in threaded view
|

Re: drawing tools - wish item

Barry DeZonia
Hi all,

I am aware of some problems on Ubuntu Linux. Some combinations of CTRL,
SHIFT, and click are captured as events in Unity and would make the tools
less functional. Whatever convention is chosen they should be compatible
with Ubuntu Linux if possible.

On Sun, Jul 15, 2012 at 2:04 PM, Michael Schmid <[hidden email]>wrote:

> Hi everyone,
>
> as we have these nice new tools, one more point, from my wishlist:
> In most programs, SHIFT constrains the motion to horizontal or vertical;
> this would be a very handy feature for ImageJ as well!
>
> Maybe, as long as people are not used too much to the new tools, it would
> not hurt to change them to CTRL-SHIFT or ALT-SHIFT for resizing the brush?
>
> [on Macs, as usual, CTRL would have to be replaced by Command key, CTRL
> brings up the context menu]
>
> Any objections?
>
> Michael
> ____________________________________________________________________
>
> On Sun, July 15, 2012 20:05, Gabriel Landini wrote:
>
> >
> > Would it be a good idea for these tools (which are much smoother than the
> > macro based ones), when one clicks+ctrl (or other) to retrieve the colour
> > under the cursor to be set as foreground?
> > This saves a lot going forwards and backwards to the colour picker tool
> > button.THis way:
> > Shift-drag changes the cursor size
> > Ctrl selects the foreground colour
> > Alt draws/paints in the background colour.
> >
> > Cheers
> >
> > Gabriel
> >
> > --
> > ImageJ mailing list: http://imagej.nih.gov/ij/list.html
> >
>
> --
> ImageJ mailing list: http://imagej.nih.gov/ij/list.html
>

--
ImageJ mailing list: http://imagej.nih.gov/ij/list.html
Reply | Threaded
Open this post in threaded view
|

Re: drawing tools - wish item

Barry DeZonia
As an example on Ubuntu you can use ALT click with a drawing tool and it
drags the window rather than drawing in the background color. It has been
made known to me that choosing CTRL ALT click will draw in the background
color.

I guess no matter what changes are decided upon (if any) I'd like to see
them work similarly on all platforms.

On Mon, Jul 16, 2012 at 12:49 PM, Barry DeZonia <[hidden email]> wrote:

> Hi all,
>
> I am aware of some problems on Ubuntu Linux. Some combinations of CTRL,
> SHIFT, and click are captured as events in Unity and would make the tools
> less functional. Whatever convention is chosen they should be compatible
> with Ubuntu Linux if possible.
>
>
> On Sun, Jul 15, 2012 at 2:04 PM, Michael Schmid <[hidden email]>wrote:
>
>> Hi everyone,
>>
>> as we have these nice new tools, one more point, from my wishlist:
>> In most programs, SHIFT constrains the motion to horizontal or vertical;
>> this would be a very handy feature for ImageJ as well!
>>
>> Maybe, as long as people are not used too much to the new tools, it would
>> not hurt to change them to CTRL-SHIFT or ALT-SHIFT for resizing the brush?
>>
>> [on Macs, as usual, CTRL would have to be replaced by Command key, CTRL
>> brings up the context menu]
>>
>> Any objections?
>>
>> Michael
>> ____________________________________________________________________
>>
>> On Sun, July 15, 2012 20:05, Gabriel Landini wrote:
>>
>> >
>> > Would it be a good idea for these tools (which are much smoother than
>> the
>> > macro based ones), when one clicks+ctrl (or other) to retrieve the
>> colour
>> > under the cursor to be set as foreground?
>> > This saves a lot going forwards and backwards to the colour picker tool
>> > button.THis way:
>> > Shift-drag changes the cursor size
>> > Ctrl selects the foreground colour
>> > Alt draws/paints in the background colour.
>> >
>> > Cheers
>> >
>> > Gabriel
>> >
>> > --
>> > ImageJ mailing list: http://imagej.nih.gov/ij/list.html
>> >
>>
>> --
>> ImageJ mailing list: http://imagej.nih.gov/ij/list.html
>>
>
>

--
ImageJ mailing list: http://imagej.nih.gov/ij/list.html
Reply | Threaded
Open this post in threaded view
|

Re: drawing tools - wish item

Barry DeZonia
Sorry, that email was not clear. I am not advocating that the Linux
behavior is somehow overridden. I am advocating that any choice of handling
SHIFT and CTRL behavior does not make impossible some commands on Linux due
to already mapped platform behavior. I hope that is more clear.

On Mon, Jul 16, 2012 at 1:46 PM, Barry DeZonia <[hidden email]> wrote:

> As an example on Ubuntu you can use ALT click with a drawing tool and it
> drags the window rather than drawing in the background color. It has been
> made known to me that choosing CTRL ALT click will draw in the background
> color.
>
> I guess no matter what changes are decided upon (if any) I'd like to see
> them work similarly on all platforms.
>
>
> On Mon, Jul 16, 2012 at 12:49 PM, Barry DeZonia <[hidden email]>wrote:
>
>> Hi all,
>>
>> I am aware of some problems on Ubuntu Linux. Some combinations of CTRL,
>> SHIFT, and click are captured as events in Unity and would make the tools
>> less functional. Whatever convention is chosen they should be compatible
>> with Ubuntu Linux if possible.
>>
>>
>> On Sun, Jul 15, 2012 at 2:04 PM, Michael Schmid <[hidden email]>wrote:
>>
>>> Hi everyone,
>>>
>>> as we have these nice new tools, one more point, from my wishlist:
>>> In most programs, SHIFT constrains the motion to horizontal or vertical;
>>> this would be a very handy feature for ImageJ as well!
>>>
>>> Maybe, as long as people are not used too much to the new tools, it would
>>> not hurt to change them to CTRL-SHIFT or ALT-SHIFT for resizing the
>>> brush?
>>>
>>> [on Macs, as usual, CTRL would have to be replaced by Command key, CTRL
>>> brings up the context menu]
>>>
>>> Any objections?
>>>
>>> Michael
>>> ____________________________________________________________________
>>>
>>> On Sun, July 15, 2012 20:05, Gabriel Landini wrote:
>>>
>>> >
>>> > Would it be a good idea for these tools (which are much smoother than
>>> the
>>> > macro based ones), when one clicks+ctrl (or other) to retrieve the
>>> colour
>>> > under the cursor to be set as foreground?
>>> > This saves a lot going forwards and backwards to the colour picker tool
>>> > button.THis way:
>>> > Shift-drag changes the cursor size
>>> > Ctrl selects the foreground colour
>>> > Alt draws/paints in the background colour.
>>> >
>>> > Cheers
>>> >
>>> > Gabriel
>>> >
>>> > --
>>> > ImageJ mailing list: http://imagej.nih.gov/ij/list.html
>>> >
>>>
>>> --
>>> ImageJ mailing list: http://imagej.nih.gov/ij/list.html
>>>
>>
>>
>

--
ImageJ mailing list: http://imagej.nih.gov/ij/list.html
Reply | Threaded
Open this post in threaded view
|

Re: drawing tools - wish item

Gabriel Landini
In reply to this post by Barry DeZonia
On Monday 16 Jul 2012 19:46:18 Barry DeZonia wrote:
> As an example on Ubuntu you can use ALT click with a drawing tool and it
> drags the window rather than drawing in the background color

At least in KDE this can be changed from Alt to the Meta key in the KDE system
settings.

> I guess no matter what changes are decided upon (if any) I'd like to see
> them work similarly on all platforms.

Me too, although I wonder if that is easy to achieve given the combinations of
window managers and keyboards one can encounter.

Cheers
Gabriel

--
ImageJ mailing list: http://imagej.nih.gov/ij/list.html
Reply | Threaded
Open this post in threaded view
|

Re: drawing tools - wish item

Rasband, Wayne (NIH/NIMH) [E]
In reply to this post by Gabriel Landini
On Jul 15, 2012, at 2:05 PM, Gabriel Landini wrote:

> On Sunday 15 Jul 2012 05:53:38 you wrote:
>> On Jul 10, 2012, at 2:00 PM, Michael Schmid wrote:
>> In the ImageJ 1.47a daily build, these four built-in tools can be installed
>> via StartupMacros.txt using this code:
>>
>>  macro "Pencil Built-in Tool" {}
>>  macro "Overlay Brush Built-in Tool" {}
>>  macro "Flood Filler Built-in Tool" {}
>>  macro "Pixel Inspector Built-in Tool" {}
>
> Would it be a good idea for these tools (which are much smoother than the
> macro based ones), when one clicks+ctrl (or other) to retrieve the colour
> under the cursor to be set as foreground?
> This saves a lot going forwards and backwards to the colour picker tool
> button.THis way:
> Shift-drag changes the cursor size
> Ctrl selects the foreground colour
> Alt draws/paints in the background colour.

In the ImageJ 1.47 daily build, thanks to Michael Schmid, the built in (selected from the toolbar's ">>" menu) Brush, Overlay Brush and Pencil tools work this way:

   Shift-drag constrains drawing to be horizontal or vertical
   Shift-ctrl-drag changes the cursor size
   Ctrl selects the foreground color
   Alt-drag draws in the background color

On Macs, use the command key instead of the control key.

-wayne


 

--
ImageJ mailing list: http://imagej.nih.gov/ij/list.html
Reply | Threaded
Open this post in threaded view
|

installation

reinhard rachel
In reply to this post by Rasband, Wayne (NIH/NIMH) [E]
Hi Wayne,
this question goes directly to you and not to the ImageJ list, because I am not sure whether it is simply my fault / lack of understanding, or what the reason might be.
I run ImageJ on a Win7-64bit Laptop with 8GB RAM (Dell) with Java 7 update 9 installed. Java is present in 64bit version and also in 32bit version - because some programs are not behaving properly when the Java 32bit version is missing (like IE9 32bit ...).
I installed ImageJ from the NIH homepage - in fact, the version without Java, because I assumed that a new version of Java is already installed on my laptop, and ImageJ would detect the 64bit Java. But, it does not ... It "only" uses the 32bit-Java. Is there a way to enforce the installed ImageJ to use the 64bit Java? Probably, I can edit the ImageJ.cfg file myself, it does not look so difficult, from the examples provided (with WordPad or NotePad?). - Or do I have to re-install ImageJ as 64bit version?
thank you for an explanation and your help, and kind regards,
Reinhard


--
Prof. Dr. Reinhard Rachel
University of Regensburg
Centre for EM / Anatomy
Faculty of Biology & Preclin. Med.
Universitaetsstrasse 31
D-93053 Regensburg - Germany
tel +49 941 943 2837, 1720
fax +49 941 943 2868
mail [hidden email]
office: VKL 3.1.29
 
next microscopy conferences:
http://www.mc2013.de/
MC2013 in Regensburg, Germany
http://www.imc2014.com/
18th IMC 2014 in Prague, Czech Rep.

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