public static CvMat CreateOrNull(SerializableCvMat mat)
 {
     if (mat == null)
     {
         return(null);
     }
     return(mat.CreateCvMat());
 }
 public static CvMat CreateOrNull(SerializableCvMat mat)
 {
     if (mat == null)
         return null;
     return mat.CreateCvMat();
 }
        /// <summary>
        /// 統合行列を保存する
        /// TODO : ダイアログ
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void ExportConversionMatrix_Click(object sender, RoutedEventArgs e)
        {
            string path = System.IO.Path.Combine(Environment.CurrentDirectory, @"ConversionMatrix.dump");
            List <SerializableCvMat> conversions = frameSequence.ToWorldConversions.Select(mat => SerializableCvMat.CreateOrNull(mat)).ToList();

            Utility.SaveToBinary(conversions, path);
        }