I am trying to use the Data Analysis “JND Difference Calculator Macro” Function. I keep getting this Exception message. Does anyone know how I can get it to recognize the label? I am importing my results in a CSV file into Image J, copy and pasted directly from my Image Analysis output.
Here is the error message:
ImageJ 1.52k; Java 1.8.0_172 [64-bit]; Mac OS X 10.14.6; 80MB of 3000MB (2%)
java.lang.IllegalArgumentException: “Label” column not found
at ij.measure.ResultsTable.getStringValue(ResultsTable.java:418)
at ij.macro.Functions.getResultLabel(Functions.java:1196)
at ij.macro.Functions.getStringFunction(Functions.java:273)
at ij.macro.Interpreter.getStringTerm(Interpreter.java:1400)
at ij.macro.Interpreter.getString(Interpreter.java:1378)
at ij.macro.Interpreter.doArrayElementAssignment(Interpreter.java:920)
at ij.macro.Interpreter.doAssignment(Interpreter.java:780)
at ij.macro.Interpreter.doStatement(Interpreter.java:288)
at ij.macro.Interpreter.doStatements(Interpreter.java:256)
at ij.macro.Interpreter.run(Interpreter.java:152)
at ij.macro.Interpreter.run(Interpreter.java:91)
at ij.macro.Interpreter.run(Interpreter.java:102)
at ij.plugin.Macro_Runner.runMacro(Macro_Runner.java:161)
at ij.plugin.Macro_Runner.runMacroFile(Macro_Runner.java:145)
at ij.plugin.Macro_Runner.run(Macro_Runner.java:60)
at ij.IJ.runPlugIn(IJ.java:199)
at ij.Executer.runCommand(Executer.java:137)
at ij.Executer.run(Executer.java:66)
at java.lang.Thread.run(Thread.java:748)
Hi Karin,
If you’re using a saved .CSV file can you make sure that the “label” column is there (e.g. when opened in excel).
jt
Hey! thanks for the response 🙂
I have done that-
Here is a sample data set that I am testing this on. This is how it is set up (CSV file), inputted into Image J via Import…Results function
Hi Karin, Hi Jolyon,
I have been getting this message as well. The first few times that I run the JND Calculator works fine. Then, suddenly I start getting this message. I have to close Image J and start everything again, and works great again.
Hi All,
Thanks for the info. What a weird intermittent issue. I’ll have a look at reproducing the error next week. In the meantime could you email me the .csv files you’re struggling to get working?
Could you also please try rolling back ImageJ to version 1.49 (help>update> and choose v1.49, you can later update back to the latest version if this doesn’t work). This will help me debug the issue because the way results tables work changed with later versions.
Cheers,
Jolyon
I’m experiencing some of these same issues described in this thread. I have been trying to calculate JNDs from an ROI on two different Cone Catch Images (same animal at different time points to quantify color difference between the images). When I use the “M” command to measure values in each selection, I find that the results table lacks labels and then when I run the “Colour JND Difference Calculator” under the “Data Analysis” section, I get a similar error message. When I have the ROIs in both images and use the “R” command to measure values in both simultaneously, the results table has labels. In this case, however, when I run the “Colour JND Difference Calculator” for the two regions between the images, the Comparison Results window that comes up gives an “NaN” value under “JND_diff”. I can’t seem to figure out why this is happening though or to get the “Colour JND Difference Calculator” to work. Any insights?
Thanks!
Chris