Exemple #1
0
 public static object Microsoft_Robotics_Services_Sample_BlobTracker_FoundBlob_TO_Microsoft_Robotics_Services_Sample_BlobTracker_Proxy_FoundBlob(object transformFrom)
 {
     global::Microsoft.Robotics.Services.Sample.BlobTracker.Proxy.FoundBlob target = new global::Microsoft.Robotics.Services.Sample.BlobTracker.Proxy.FoundBlob();
     global::Microsoft.Robotics.Services.Sample.BlobTracker.FoundBlob       from   = ((global::Microsoft.Robotics.Services.Sample.BlobTracker.FoundBlob)(transformFrom));
     int[] tmp = from.XProjection;
     if ((tmp != null))
     {
         int   count = tmp.Length;
         int[] tmp0  = new int[count];
         global::System.Buffer.BlockCopy(tmp, 0, tmp0, 0, global::System.Buffer.ByteLength(tmp));
         target.XProjection = tmp0;
     }
     int[] tmp1 = from.YProjection;
     if ((tmp1 != null))
     {
         int   count0 = tmp1.Length;
         int[] tmp2   = new int[count0];
         global::System.Buffer.BlockCopy(tmp1, 0, tmp2, 0, global::System.Buffer.ByteLength(tmp1));
         target.YProjection = tmp2;
     }
     target.Name    = from.Name;
     target.MeanX   = from.MeanX;
     target.MeanY   = from.MeanY;
     target.StdDevX = from.StdDevX;
     target.StdDevY = from.StdDevY;
     target.SkewX   = from.SkewX;
     target.SkewY   = from.SkewY;
     target.Area    = from.Area;
     return(target);
 }
Exemple #2
0
 public static object Microsoft_Robotics_Services_Sample_BlobTracker_BlobTrackerState_TO_Microsoft_Robotics_Services_Sample_BlobTracker_Proxy_BlobTrackerState(object transformFrom)
 {
     global::Microsoft.Robotics.Services.Sample.BlobTracker.Proxy.BlobTrackerState target = new global::Microsoft.Robotics.Services.Sample.BlobTracker.Proxy.BlobTrackerState();
     global::Microsoft.Robotics.Services.Sample.BlobTracker.BlobTrackerState       from   = ((global::Microsoft.Robotics.Services.Sample.BlobTracker.BlobTrackerState)(transformFrom));
     global::System.Collections.Generic.List <global::Microsoft.Robotics.Services.Sample.BlobTracker.ColorBin> tmp = from.ColorBins;
     if ((tmp != null))
     {
         int count = tmp.Count;
         global::System.Collections.Generic.List <global::Microsoft.Robotics.Services.Sample.BlobTracker.Proxy.ColorBin> tmp0 = new global::System.Collections.Generic.List <global::Microsoft.Robotics.Services.Sample.BlobTracker.Proxy.ColorBin>(count);
         for (int index = 0; (index < count); index = (index + 1))
         {
             global::Microsoft.Robotics.Services.Sample.BlobTracker.Proxy.ColorBin tmp1 = default(global::Microsoft.Robotics.Services.Sample.BlobTracker.Proxy.ColorBin);
             global::Microsoft.Robotics.Services.Sample.BlobTracker.ColorBin       tmp2 = tmp[index];
             if ((tmp2 != null))
             {
                 tmp1 = ((global::Microsoft.Robotics.Services.Sample.BlobTracker.Proxy.ColorBin)(Microsoft_Robotics_Services_Sample_BlobTracker_ColorBin_TO_Microsoft_Robotics_Services_Sample_BlobTracker_Proxy_ColorBin(tmp2)));
             }
             tmp0.Add(tmp1);
         }
         target.ColorBins = tmp0;
     }
     target.TimeStamp = from.TimeStamp;
     global::System.Collections.Generic.List <global::Microsoft.Robotics.Services.Sample.BlobTracker.FoundBlob> tmp3 = from.Results;
     if ((tmp3 != null))
     {
         int count0 = tmp3.Count;
         global::System.Collections.Generic.List <global::Microsoft.Robotics.Services.Sample.BlobTracker.Proxy.FoundBlob> tmp4 = new global::System.Collections.Generic.List <global::Microsoft.Robotics.Services.Sample.BlobTracker.Proxy.FoundBlob>(count0);
         for (int index0 = 0; (index0 < count0); index0 = (index0 + 1))
         {
             global::Microsoft.Robotics.Services.Sample.BlobTracker.Proxy.FoundBlob tmp5 = default(global::Microsoft.Robotics.Services.Sample.BlobTracker.Proxy.FoundBlob);
             global::Microsoft.Robotics.Services.Sample.BlobTracker.FoundBlob       tmp6 = tmp3[index0];
             if ((tmp6 != null))
             {
                 tmp5 = ((global::Microsoft.Robotics.Services.Sample.BlobTracker.Proxy.FoundBlob)(Microsoft_Robotics_Services_Sample_BlobTracker_FoundBlob_TO_Microsoft_Robotics_Services_Sample_BlobTracker_Proxy_FoundBlob(tmp6)));
             }
             tmp4.Add(tmp5);
         }
         target.Results = tmp4;
     }
     return(target);
 }
Exemple #3
0
 public static object Microsoft_Robotics_Services_Sample_BlobTracker_ImageProcessedRequest_TO_Microsoft_Robotics_Services_Sample_BlobTracker_Proxy_ImageProcessedRequest(object transformFrom)
 {
     global::Microsoft.Robotics.Services.Sample.BlobTracker.Proxy.ImageProcessedRequest target = new global::Microsoft.Robotics.Services.Sample.BlobTracker.Proxy.ImageProcessedRequest();
     global::Microsoft.Robotics.Services.Sample.BlobTracker.ImageProcessedRequest       from   = ((global::Microsoft.Robotics.Services.Sample.BlobTracker.ImageProcessedRequest)(transformFrom));
     target.TimeStamp = from.TimeStamp;
     global::System.Collections.Generic.List <global::Microsoft.Robotics.Services.Sample.BlobTracker.FoundBlob> tmp = from.Results;
     if ((tmp != null))
     {
         int count = tmp.Count;
         global::System.Collections.Generic.List <global::Microsoft.Robotics.Services.Sample.BlobTracker.Proxy.FoundBlob> tmp0 = new global::System.Collections.Generic.List <global::Microsoft.Robotics.Services.Sample.BlobTracker.Proxy.FoundBlob>(count);
         for (int index = 0; (index < count); index = (index + 1))
         {
             global::Microsoft.Robotics.Services.Sample.BlobTracker.Proxy.FoundBlob tmp1 = default(global::Microsoft.Robotics.Services.Sample.BlobTracker.Proxy.FoundBlob);
             global::Microsoft.Robotics.Services.Sample.BlobTracker.FoundBlob       tmp2 = tmp[index];
             if ((tmp2 != null))
             {
                 tmp1 = ((global::Microsoft.Robotics.Services.Sample.BlobTracker.Proxy.FoundBlob)(Microsoft_Robotics_Services_Sample_BlobTracker_FoundBlob_TO_Microsoft_Robotics_Services_Sample_BlobTracker_Proxy_FoundBlob(tmp2)));
             }
             tmp0.Add(tmp1);
         }
         target.Results = tmp0;
     }
     return(target);
 }