Esempio n. 1
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))));
 }
Esempio n. 2
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))));
 }
Esempio n. 3
0
 /// <summary>
 /// Returns the value of a specific point in the matrix. (MAT_TYPE_8U_C3)
 /// </summary>
 /// <param name="x">Row the point is in.</param>
 /// <param name="y">Column the point is in.</param>
 /// <param name="value">Gets filled with the current value.</param>
 /// <param name="mem">Whether point is on CPU memory or GPU memory.</param>
 /// <returns>Error code indicating if the get was successful, or why it wasn't.</returns>
 public sl.ERROR_CODE GetValue(int x, int y, out char3 value, sl.ZEDMat.MEM mem)
 {
     return((sl.ERROR_CODE)(dllz_mat_get_value_uchar3(_matInternalPtr, x, y, out value, (int)(mem))));
 }