Hello Jolyon, and thank you for developing this amazing piece of software!
I consistently get the same error when trying to generate a cone mapping model from the measurements of a x-rite mini colour checker. I tried to use different cameras (each one with its specific custom linearisation model which seems to work properly) and different pictures of the checker, but the same error always shows up.
The following is part of the error message I’m getting:
ImageJ 1.52k; Java 1.8.0_172 [64-bit]; Mac OS X 10.14.5; 1143MB of 3000MB (38%)
warning: [options] bootstrap class path not set in conjunction with -source 1.6
/Applications/ImageJ.app/plugins/Cone Models/NikonCoolpixAW130_CIE_XYZ_1931_D65_.java:26: error: not a statement
/Applications/ImageJ.app/plugins/Cone Models/NikonCoolpixAW130_CIE_XYZ_1931_D65_.java:38: error: illegal start of expression
= (float) stack.getPixels(1);
/Applications/ImageJ.app/plugins/Cone Models/NikonCoolpixAW130_CIE_XYZ_1931_D65_.java:44: error: ‘)’ expected
X[i] = (float) (NaN [i]+( [i]*NaN)+(visibleR[i]*NaN)+(visibleG[i]*NaN)+(visibleB[i]*NaN)+( [i]*visibleR[i]*NaN)+( [i]*visibleG[i]*NaN)+( [i]*visibleB[i]*NaN)+(visibleR[i]*visibleG[i]*NaN)+(visibleR[i]*visibleB[i]*NaN)+(visibleG[i]*visibleB[i]*NaN));
Am I missing something?
Thanks for the help!
I’m having the same problem currently. Have either of you figured out the source of this error? Thanks!
The code is showing you have a load of NaNs where there should be numbers. So evidently something has gone wrong with either the measurement of chart values, or the loading of chart values from the file, or the labels of the camera channels.
When you measure your photograph of the chart do you get “Red” “Green” and “Blue” listed as the channels?