Posted by
Michael Schmid on
URL: http://imagej.273.s1.nabble.com/Using-Brush-Tool-in-Java-tp5002648p5002653.html
Hi Michael,
(1) on the Brush tool:
Your description sounds like you have the Selection Brush tool (available manually via the Toolbar by right-clicking on the second field, which is usually the ellipse). The interior of the brush becomes a selection; the outline of the selection is usually orange or yellow, depending on Edit>Options>Color.
The true brush tool is usually loaded with the StartupMacros.txt to one of the free slots.
(2) Finding 10 colors in an image? Does this mean, you have 10 different color shades, each of them with different hue, saturation or brightness, but not exactly that value, in an image with 3 primary colors (RGB)? To get started, you may have a look at the color space using the Color Inspection plugin
http://rsbweb.nih.gov/ij/plugins/color-inspector.htmlI don't know any good way to proceed.
Or does it mean, you have an image with 10 or more channels for specific wavelengths?
Michael
________________________________________________________________
On Apr 15, 2013, at 16:40, jck wrote:
> Hi,
>
> i want to use the Brush tool of ImageJ in my own Java programm.
> It is no problem to set the tool, but i cannot use it.
> When a image is open i can draw on it, but all i get is an yellow frame,
> where the color should be.
>
> I already tried to set up the color with:
> Toolbar.setBackgroundColor() und Toolbar.setForegroundColor()
>
> Maybe someone can help, or show me a tutorial how to do it, i could not find
> one.
>
> This is how i call the Toolbar/Tool:
>
>
> Another question:
> Is there a plugin that splits an Image by Colors? (About 10 Colors, i only
> found the Color_Deconvolution, but it only can split 3 different colors).
>
>
> Thanks in advance.
> Michael.
>
>
>
> --
> View this message in context:
http://imagej.1557.x6.nabble.com/Using-Brush-Tool-in-Java-tp5002648.html> Sent from the ImageJ mailing list archive at Nabble.com.
>
> --
> ImageJ mailing list:
http://imagej.nih.gov/ij/list.html--
ImageJ mailing list:
http://imagej.nih.gov/ij/list.html