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!
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?
Thanks for the reply! I did realise about the NaNs but could not figure out why they appear.
When I measure the chart I do get the three channels listed (“visible:R:Normalised”, “visible:G:Normalised”, and “visible:B:Normalised”). Also the loading of the chart values from the “Results” csv file seems to work fine, and the file appears identical to the one you show in the tutorial video..