Exemplo n.º 1
0
 /// <summary>
 /// Fills the entire Mat with the given value. (MAT_TYPE_8U_C4)
 /// </summary>
 /// <param name="value">Value with which to fill the Mat.</param>
 /// <param name="mem">Which buffer to fill - CPU or GPU memory.</param>
 /// <returns>Whether the set was successful, or why it wasn't.</returns>
 public sl.ERROR_CODE SetTo(ref char4 value, sl.ZEDMat.MEM mem)
 {
     return((sl.ERROR_CODE)(dllz_mat_set_to_uchar4(_matInternalPtr, ref value, (int)(mem))));
 }
Exemplo n.º 2
0
 private static extern int dllz_mat_set_to_uchar4(System.IntPtr ptr, ref char4 value, int mem);
Exemplo n.º 3
0
 /// <summary>
 /// Sets a value to a specific point in the matrix. (MAT_TYPE_8U_C4)
 /// </summary>
 /// <param name="x">Row the point is in.</param>
 /// <param name="y">Column the point is in.</param>
 /// <param name="value">Value to which the point will be set.</param>
 /// <param name="mem">Whether point is on CPU memory or GPU memory.</param>
 /// <returns>Error code indicating if the set was successful, or why it wasn't.</returns>
 public sl.ERROR_CODE SetValue(int x, int y, ref char4 value, sl.ZEDMat.MEM mem)
 {
     return((sl.ERROR_CODE)(dllz_mat_set_value_uchar4(_matInternalPtr, x, y, ref value, (int)(mem))));
 }
Exemplo n.º 4
0
 private static extern int dllz_mat_get_value_uchar4(System.IntPtr ptr, int x, int y, out char4 value, int mem);