- java.lang.Object
-
- ij.plugin.tool.PlugInTool
-
- ij.plugin.tool.PixelInspectionTool
-
- All Implemented Interfaces:
PlugIn
public class PixelInspectionTool extends PlugInTool
This plugin continuously displays the pixel values of the cursor and its surroundings. It is usefule for examining how a filter changes the data (also during preview). If the Pixel Inspector Window is in the foreground, "c" with any modifier keys (CTRL-C etc) copies the current data into the clipboard (tab-delimited). The arrow keys nudge the position. Preferences (Press the Prefs button at top left): Radius determines the size of the window, 3x3 for radius=1, etc. The Pixel Inspector window must be closed and opened to get the new size. Readout for grayscale 8&16 bit images can be raw, calibrated or hexadecimal. Readout for RGB images can ge R,G,B triples, gray value or hexadecimal. For copying the data to clipboard, it can be selected whether the position (x,y) is not not written, written in the first line or in the same way as the header lines of the Pixel Inspector panel. Limitations and known problems: x and y coordinates are always uncalibrated pixel numbers. Some image operations do not update the display. Michael Schmid Version 2007-Dec-06 - bugs fixed: did not always follow cursor nudge could make the display hang pixel value calibration was sometimes ignored Version 2007-Dec-14 - supports exponential format for large/small data values
-
-
Constructor Summary
Constructors Constructor Description PixelInspectionTool()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
getToolIcon()
Return the string encoding of the tool icon.java.lang.String
getToolName()
Return the tool name.void
mouseDragged(ImagePlus imp, java.awt.event.MouseEvent e)
void
mousePressed(ImagePlus imp, java.awt.event.MouseEvent e)
void
showOptionsDialog()
-
Methods inherited from class ij.plugin.tool.PlugInTool
getMacroProgram, mouseClicked, mouseEntered, mouseExited, mouseMoved, mouseReleased, run, runMacroTool, runMenuTool, showPopupMenu
-
-
-
-
Method Detail
-
mousePressed
public void mousePressed(ImagePlus imp, java.awt.event.MouseEvent e)
- Overrides:
mousePressed
in classPlugInTool
-
mouseDragged
public void mouseDragged(ImagePlus imp, java.awt.event.MouseEvent e)
- Overrides:
mouseDragged
in classPlugInTool
-
showOptionsDialog
public void showOptionsDialog()
- Overrides:
showOptionsDialog
in classPlugInTool
-
getToolName
public java.lang.String getToolName()
Description copied from class:PlugInTool
Return the tool name.- Overrides:
getToolName
in classPlugInTool
-
getToolIcon
public java.lang.String getToolIcon()
Description copied from class:PlugInTool
Return the string encoding of the tool icon. See http://rsb.info.nih.gov/ij/developer/macro/macros.html#icons The default icon is the first letter of the tool name.- Overrides:
getToolIcon
in classPlugInTool
-
-