internal MatrixOp(Dlib.Native.ElementType elementType, ImageTypes type, IntPtr ptr) { this._ElementType = elementType; this._Array2DType = type.ToNativeArray2DType(); this.NativePtr = ptr; this._ImageType = type; }
internal MatrixOp(Dlib.Native.ElementType elementType, MatrixElementTypes type, IntPtr ptr, int templateRows = 0, int temlateColumns = 0) { this._ElementType = elementType; this._MatrixElementType = type.ToNativeMatrixElementType(); this.NativePtr = ptr; this.TemplateRows = templateRows; this.TemplateColumns = temlateColumns; }
public static extern Dlib.Native.ErrorType image_window_set_image_matrix_op(IntPtr window, Dlib.Native.ElementType matrixElementType, Dlib.Native.Array2DType type, IntPtr matrix);
public static extern IntPtr image_window_new_matrix_op2(Dlib.Native.ElementType matrixElementType, Dlib.Native.Array2DType type, IntPtr image, byte[] title);
public static extern IntPtr image_window_new_matrix_op4(Dlib.Native.ElementType etype, Dlib.Native.MatrixElementType type, IntPtr img, int templateRows, int templateColumns, byte[] title);
public static extern Dlib.Native.ErrorType matrix_op_nr(Dlib.Native.ElementType etype, Dlib.Native.Array2DType type, IntPtr matrix, out int ret);
public static extern Dlib.Native.ErrorType matrix_op_operator(Dlib.Native.ElementType etype, Dlib.Native.Array2DType type, IntPtr matrix, int r, int c, IntPtr rgbPixel);
public static extern bool matrix_op_nc(Dlib.Native.ElementType etype, Dlib.Native.Array2DType type, IntPtr matrix, out int ret);