- im_out.labelsCopy (im_in1, "if-2 file 1: ");
- im_out.labelsCopy (im_in2, "if-2 file 2: ");
- im_out.labelAdd (Array2dFileLabel::L_HISTORY, strOperation.c_str());
+ if (opt_rowPlot > 0) {
+ if (opt_rowPlot >= im_in1.ny() || opt_rowPlot >= im_in2.ny()) {
+ sys_error (ERR_SEVERE, "row_plot > ny");
+ return (1);
+ }
+ double plot_xaxis [im_in1.ny()];
+ double v1Row[im_in1.nx()], v2Row[im_in2.nx()];
+
+ for (int i = 0; i < im_in1.ny(); i++)
+ plot_xaxis[i] = i;
+ for (int i = 0; i < im_in1.nx(); i++)
+ v1Row[i] = v1[opt_rowPlot][i];
+ for (int i = 0; i < im_in2.nx(); i++)
+ v2Row[i] = v2[opt_rowPlot][i];
+
+#if HAVE_SGP
+#if 0
+#else
+ ezset ("clear.");
+ ezset ("xticks major 5.");
+ ezset ("xlabel Column");
+ ezset ("ylabel Pixel");
+ ezset ("curves 2");
+ ezset ("box.");
+ ezset ("grid.");
+ ezplot (v1Row, plot_xaxis, im_in1.nx());
+ ezplot (v2Row, plot_xaxis, im_in2.nx());
+#endif
+ char str[256];
+ cout << "Press enter to continue" << flush;
+ fgets(str, sizeof(str), stdin);
+ sgp2_close (sgp2_get_active_win());
+#endif
+ }