Esempio n. 1
0
 /// <summary>
 /// Gets the extrinsic transformation from this sensor stream to another sensor stream.
 /// </summary>
 /// <param name="other">The target sensor stream profile.</param>
 /// <param name="extrinsics">
 /// The result structure specifying the extrinsic transformation between the two sensor streams.
 /// </param>
 public void GetExtrinsicsTo(StreamProfile other, out Extrinsics extrinsics)
 {
     if (other == null)
     {
         throw new ArgumentNullException(nameof(other));
     }
     NativeMethods.rs2_get_extrinsics(handle, other.handle, out extrinsics, out IntPtr error);
     NativeHelper.ThrowExceptionForRsError(error);
 }
Esempio n. 2
0
 public void Open(StreamProfile profile)
 {
     NativeMethods.rs2_open(handle, profile.Handle, out IntPtr error);
     NativeHelper.ThrowExceptionForRsError(error);
 }
Esempio n. 3
0
 /// <summary>
 /// Gets the extrinsic transformation from this sensor stream to another sensor stream.
 /// </summary>
 /// <param name="other">The target sensor stream profile.</param>
 /// <returns>The extrinsic transformation between the two sensor streams.</returns>
 public Extrinsics GetExtrinsicsTo(StreamProfile other)
 {
     GetExtrinsicsTo(other, out Extrinsics extrinsics);
     return(extrinsics);
 }