I would like to use the SDK to pre-load camera calibration data before doing reconstruction. In the application, this can be done with XMP files, or manually, but cannot find an obvious way to do it in the SDK.
I can see that after adding images to a IStructureFromMotion object, one can read the SfmCameraCalibration, SfmCameraCalibrationFlags, and SfmLensDistortionModel parameters for each image via the classes and methods: ((IstructureFromMotion->GetImage).ISfmStreamInput->GetCalibration).
However, when I tried to change the calibration values there using the pointers returned, I have no success. I can’t find another other structure or method in IStructureFromMotion besides possibly the (__in_opt IWICMetadataQueryReader *pCustomMetadata) which would allow me to enter this information.
Is there a means of loading camera calibration data prior to reconstruction in the SDK? What’s the best way?
After reconstruction, it seems more clear how to modify the camera information, using the SetCamera method, or by directly accessing the camera model member variables.