I am using the StitchEngine.dll from the Microsofot Image Composite Engine (ICE) to attempt to stitch images together in c#. I am trying to export the resulting image using the following method:
StartExporting(string, System.ValueType, Microsoft.Research.ICE.Stitching.OutputOptions, bool)
The description of this method gives:
public bool StartExporting(string *filename*, System.ValueType *cropRectangle*, float *scale*, Microsoft.Research.ICE.Stitching.OutputOptions *outputOptions*, bool *showCompletion*.
When I attempt to call the method, I am getting an InvalidCastException, stating that the Specified cast is not valid.
I am doing the following:
Microsoft.Research.ICE.Stitching.OutputOptions outOpt = new Microsoft.Research.ICE.Stitching.OutputOptions(Microsoft.Research.ICE.Stitching.ExportFormat.JPEG, 75, false, false, false);
var valTyp = new Rectangle(0, 0, 500, 1280);
StartExporting(myFilename, valTyp, outOpt, false);
Does anyone have any idea how I could correct this?