A PixInsight module that derives a camera's color calibration matrix from a photograph of a color target, and applies it. It can also read and write ICC input profiles, so the same calibration can be reloaded or used in any color managed application.
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 Modules › ColorCalibration › ColorCalibrationMatrix.
It requires PixInsight 1.9.4 Lockhart or later.