Closed ilia3101 closed 6 years ago
It returns vanilla matrix with dividers ( I know you hate it ;) ). I could write some funcs which will return float matrix without divider to eliminate more work for you. Need it?
I just needed this type of matrix for including to dng header. There is no tag for float matrix in dng header.
Thanks for the explanation, it was really helpful. Sorry didn't reply at the time
The dividers are alright :)
What is the forward matrix for?
Sorry about late answer. It is very simple.
These are funcs from cam_id.h:
This one is for getting the "camera name"/"unique name" for the given camera model ID:
const char* camidGetCameraName(uint32_t cameraModel, int camname_type);
There funcs to get all other info by camera model ID:
To get matrix 1 or 2 use first 2 functions. However the matrix you need is the matrix2
Example:
int32_t * 5d2_camera_matrix2 = camidGetColorMatrix2( 0x80000218 );
all camera model IDs are in the cam_id.c file and available from IDNT header of MLV (cameraModel)
That's all :)