Camconst.json item for A480, Crops black borders and pushes RT to calculate black level from optically black area.
The Daylight and IR matrix is inactive for DNG files, we need to edit DNG’s exif with exiftool
{ // Quality X, experimental infrared support
"make_model": "Canon PowerShot A480",
// "dcraw_matrix": [ 8275,-2905,-1261,-128,5305,505,52,482,2450 ], // DNG_CHDK_V1.3.0 Daylight
"dcraw_matrix": [ 15906,-7425,-2014,-2010,5554,264,404,-265,2706 ], // Infrared guessed
"raw_crop": [ 6, 12, 3684, 2760 ], // full size 3720X2772, official Canon crop 3648x2736
"masked_areas": [ 12, 3694, 2760, 3716 ], // only left side optically black area is considered
"ranges": { "white": 4080 }
},
Edited sample (change matrix to IR) https://drive.google.com/file/d/0B0NqktTgc54sQjRaSnkwSDUySUk/view?usp=sharing
I think an acceptable approach for IR files would be a new option in Color management i.e. besides “no profile” (where no color correction nor color managenet is active). The new option should use unitary matrix (like “no profile” does) but activate the color management like “camera” option