A PixInsight script that derives a camera's color correction matrix from a photograph of a color target.
In PixInsight, open Resources › Updates › Manage Repositories
and add the URL below. Then run Resources › Updates › Check for Updates
and restart PixInsight.
The script installs under Script › Instrumentation › ColorSpaceCalibration.
It requires PixInsight 1.9.4 Lockhart or later. That release replaced the SpiderMonkey JavaScript engine with V8, and the script uses V8.
The package is not signed yet, so PixInsight asks you to confirm the risk at install time. A signature needs a Certified PixInsight Developer certificate, which is in progress.