I am trying to write an ImageJ macro and need to duplicate what happens when you use
Image > Adjust > Brightness/Contrast... > Apply
on an image that is neither 8-bit nor RGB. I have tested with a 16-bit grayscale and confirmed that doing so using the GUI does, in fact, change the pixel values. However, when I try to use the commands listed in the recorder, it gives me an error message, stating the supposed limitations as described in the documentation. This is true for both the macro language (run("Apply LUT")
) and Java (IJ.run(imp, "Apply LUT", "")
).
Is the output of the recorder incorrect, am I missing something else, or is it a bug that this works using the GUI?