diff --git a/calc_cc_xyz.py b/calc_cc_xyz.py index 53d9706..485e7b4 100644 --- a/calc_cc_xyz.py +++ b/calc_cc_xyz.py @@ -34,13 +34,16 @@ XYZcc24 = ((rep * cc24.T) @ cmf) * K print(XYZcc24) +plt.subplot(1, 3, 1) +plt.plot(wl, cmf) +plt.title("Color Matching Func") +plt.subplot(1, 3, 2) +plt.plot(wl, d65) +plt.title("D65 illuminant") +plt.subplot(1, 3, 3) +plt.plot(wl, cc24) +plt.title("Target spectrum") + +plt.show() + np.savetxt("XYZ_output.csv", XYZcc24, delimiter=",", fmt="%.4f") - -# plt.subplot(1, 3, 1) -# plt.plot(wl, cmf) -# plt.subplot(1, 3, 2) -# plt.plot(wl, d65) -# plt.subplot(1, 3, 3) -# plt.plot(wl, cc24) - -# plt.show()