Hi,
I run the "Fonts.txt" macro, and get a list of available fonts. However, in ImageJ's menu command "Edit->Options->Fonts...", there are only 5 fonts can be selected. How to use the available fonts in ImageJ? Thanks! Yili Zhao |
The font.txt macro demonstrates the getFontList() macro function.
The fonts listed by this function are possible arguments to the setFont() macro function that sets the font used by the drawString() macro function. Thus, so far, extra fonts can only be used from within a macro, and can not be used by the Text tool from the tool bar. This tool uses the font set by the Edit/Options/Fonts... dialog which displays only 5 fonts. Jerome Quoting Yili Zhao <[hidden email]>: > Hi, > I run the "Fonts.txt" macro, and get a list of available fonts. However= > ,=20 > in ImageJ's menu command "Edit->Options->Fonts...", there are only 5 font= > s=20 > can be selected. How to use the available fonts in ImageJ? > Thanks! > > Yili Zhao > > |
On Wednesday 10 May 2006 10:14, Jerome Mutterer wrote:
> The font.txt macro demonstrates the getFontList() macro function. > The fonts listed by this function are possible arguments to the > setFont() macro function that sets the font used by the drawString() > macro function. > Thus, so far, extra fonts can only be used from within a macro, and > can not be used by the Text tool from the tool bar. This tool uses the > font set by the Edit/Options/Fonts... dialog which displays only 5 > fonts. For some reason, the macro gives an error half the way through when showing all fonts: java.lang.IllegalArgumentException: Width (0) and height (30) cannot be <= 0 at java.awt.image.DirectColorModel.createCompatibleWritableRaster(DirectColorModel.java:999) at sun.awt.X11GraphicsConfig.createAcceleratedImage(X11GraphicsConfig.java:365) at sun.awt.X11.XComponentPeer.createImage(XComponentPeer.java:819) at java.awt.Component.createImage(Component.java:3147) at ij.process.ImageProcessor.drawString(ImageProcessor.java:876) at ij.process.ImageProcessor.drawString(ImageProcessor.java:928) at ij.macro.Functions.drawString(Functions.java:783) at ij.macro.Functions.doFunction(Functions.java:87) at ij.macro.Interpreter.doStatement(Interpreter.java:195) at ij.macro.Interpreter.doBlock(Interpreter.java:503) at ij.macro.Interpreter.doStatement(Interpreter.java:231) at ij.macro.Interpreter.doFor(Interpreter.java:449) at ij.macro.Interpreter.doStatement(Interpreter.java:213) at ij.macro.Interpreter.doStatements(Interpreter.java:185) at ij.macro.Interpreter.run(Interpreter.java:90) at ij.macro.Interpreter.run(Interpreter.java:56) at ij.macro.MacroRunner.run(MacroRunner.java:65) at java.lang.Thread.run(Thread.java:626) I traced it down to a PostScript Type 1 font called "Cursor, Medium". which seems to return the wrong dimensions. I added a line to the macro so skip the font if the name is "Cursor". I also wanted to suggest the following. The New Image IJ command and the newImage macro command can have a "Black", "White" and "Ramp" options. It may be useful to add a "Foreground" and "Background" options which fill the images with the current foreground or background colours as set in the colour picker. Since some (me included) set the default IJ with a black background and a white foreground, the Fonts macro assumes the opposite and so the result is all white (you can't see the fonts which are written in the foreground colour (currently white), with the background assumed to be the IJ default white). Having "Foreground" and "Background" (in adition to the Black, White and Ramp) would avoid this kind of problem. Cheers, Gabriel |
Hi there,
I´m just wondering, is there already a plugin that can simulate resp. compensate for lense distortion in images? More mathematically, what is needed is the ability to do "warping" on an image, i.e. remapping pixels to slighly different coordinates, in the case of lense distortion given by a radial symmetric function that in not completely linear in r? Any functionality built in one could use to do this quickly? Thanx Joachim ______________________________________________________________________ This email has been scanned by the MessageLabs Email Security System. For more information please visit http://www.messagelabs.com/email ______________________________________________________________________ |
In reply to this post by panovr
> I run the "Fonts.txt" macro, and get a list of available fonts.
> However, > in ImageJ's menu command "Edit->Options->Fonts...", there are > only 5 fonts can be selected. How to use the available fonts in ImageJ? This is fixed in ImageJ 1.37g, due by the end of this week. -wayne |
In reply to this post by Gabriel Landini
hello,
I'm trying to use the wand tool to select multiples ROI (shift + click) in a thresholded image. It seems to work (the ROI are outlined) but the "analyse particles" command detects nothing. I have tested it with the same measurements settings but with the other tools (square, circle) and it works perfect... why ? Multiple selections are not available with the wand tool ? Thank you !! Leon Le 10 mai 06 à 11:43, Gabriel Landini a écrit : Leon Espinosa [hidden email] Laboratoire des Rickettsies du Pr. RAOULT UMR CNRS 6020 Fac. de Medecine de la Timone 27 Bd Jean Moulin 13005 Marseille |
> I'm trying to use the wand tool to select multiples ROI (shift +
> click) in a thresholded image. It seems to work (the ROI are outlined) > but the "analyse particles" command detects nothing. I have tested it > with the same measurements settings but with the other tools (square, > circle) and it works perfect... why ? > Multiple selections are not available with the wand tool ? It appears to work okay if "Exclude on Edges" is not checked in the Analyze Particles dialog. If it is checked, all particles are excluded because they all touch an edge. -wayne |
Free forum by Nabble | Edit this page |