-
Notifications
You must be signed in to change notification settings - Fork 243
Open
Description
I updated the ContrastAdjuster.java file to show the image histogram with the LUT colors of the image (if image has LUT). This is especially useful when dealing with atomic force microscopy images.
See the movie below for more details.
Note: these changes are based in part on code from ThresholdAdjuster.java.
Updated ContrastAdjuster.java:
- If image has LUT the image histogram is rendered using the LUT colors.
- The histogram is rendered with LUT accordingly to the current minimum and maximum values (or Contrast and Brightness and so on).
- Added a checkbox for render the histogram with a logarithmic scale.
- Moreover, the title of the "Color Balance..." window is set to "LUT color" and only one channel ("LUT scale") is available for modification when the active image is GREY8 or GREY16 or GREY32 (and is not composite).
- Corrected a bug when there are no open images, the "Color Balance..." window is open and the channel is changed (e.g. from “Red” to “Green”).
Start of debug log when this error is triggered:
ImageJ 1.54p; Java 1.8.0_345 [64-bit]; Mac OS X 10.16; 22MB of 3000MB (<1%)
java.lang.NullPointerException
at ij.plugin.frame.ContrastAdjuster.itemStateChanged(ContrastAdjuster.java:1200)
at java.awt.Choice.processItemEvent(Choice.java:631) …
These changes are useful when dealing with atomic force microscopy images, but may be also of interest for other users.
If this is the case, I can make a pull request.
Lorenzo
ContrastAdjuster.mp4
ndefrancesco
Metadata
Metadata
Assignees
Labels
No labels
