0
0 Comments

Hello,

I am trying to generate a conecatch model for my camera. I was able to get up to the point where the model was actually to be generated and then I got a huge window of errors and XYZ values of NaN. The window says 89 errors and 1 warning.

It read like this (with many more lines):

ImageJ 1.52q; Java 1.8.0_172 [64-bit]; Mac OS X 10.15.2; 1589MB of 3000MB (52%)

warning: [options] bootstrap class path not set in conjunction with -source 1.6

/Users/Dropbox/ImageJ.app/plugins/Cone Models/Cannon_Guppies_CIE_XYZ_1931_D65_.java:26: error: not a statement

float[]  ;

     ^

/Users/Dropbox/ImageJ.app/plugins/Cone Models/Cannon_Guppies_CIE_XYZ_1931_D65_.java:38: error: illegal start of expression

  = (float[]) stack.getPixels(1);

  ^

/Users/Dropbox/ImageJ.app/plugins/Cone Models/Cannon_Guppies_CIE_XYZ_1931_D65_.java:44: error: illegal start of expression

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));

                          ^

/Users/Dropbox/ImageJ.app/plugins/Cone Models/Cannon_Guppies_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));

                           ^

/Users/Dropbox/ImageJ.app/plugins/Cone Models/Cannon_Guppies_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));

                            ^

/Users/Dropbox/ImageJ.app/plugins/Cone Models/Cannon_Guppies_CIE_XYZ_1931_D65_.java:44: error: illegal start of expression

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));

                             ^

/Users/Dropbox/ImageJ.app/plugins/Cone Models/Cannon_Guppies_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));

                                 ^

/Users/Dropbox/ImageJ.app/plugins/Cone Models/Cannon_Guppies_CIE_XYZ_1931_D65_.java:44: error: not a statement

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));

                                               ^

/Users/Dropbox/ImageJ.app/plugins/Cone Models/Cannon_Guppies_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));

I am not sure how to proceed past the error message as my XYZ R^2 values are not generated and the model is not created.

Thank you for your time and help.

Anya

Error in generating cone catch model
Cedric van den Berg Answered question July 3, 2020