public unsafe FractionRgbData(global::Org.Neuroph.Contrib.Imgrec.Image.IImage p0)
            : base(IntPtr.Zero, JniHandleOwnership.DoNotTransfer)
        {
            if (((global::Java.Lang.Object) this).Handle != IntPtr.Zero)
            {
                return;
            }

            try {
                JValue *__args = stackalloc JValue [1];
                __args [0] = new JValue(p0);
                if (GetType() != typeof(FractionRgbData))
                {
                    SetHandle(
                        global::Android.Runtime.JNIEnv.StartCreateInstance(GetType(), "(Lorg/neuroph/contrib/imgrec/image/Image;)V", __args),
                        JniHandleOwnership.TransferLocalRef);
                    global::Android.Runtime.JNIEnv.FinishCreateInstance(((global::Java.Lang.Object) this).Handle, "(Lorg/neuroph/contrib/imgrec/image/Image;)V", __args);
                    return;
                }

                if (id_ctor_Lorg_neuroph_contrib_imgrec_image_Image_ == IntPtr.Zero)
                {
                    id_ctor_Lorg_neuroph_contrib_imgrec_image_Image_ = JNIEnv.GetMethodID(class_ref, "<init>", "(Lorg/neuroph/contrib/imgrec/image/Image;)V");
                }
                SetHandle(
                    global::Android.Runtime.JNIEnv.StartCreateInstance(class_ref, id_ctor_Lorg_neuroph_contrib_imgrec_image_Image_, __args),
                    JniHandleOwnership.TransferLocalRef);
                JNIEnv.FinishCreateInstance(((global::Java.Lang.Object) this).Handle, class_ref, id_ctor_Lorg_neuroph_contrib_imgrec_image_Image_, __args);
            } finally {
            }
        }
        static IntPtr n_ResizeImage_Lorg_neuroph_contrib_imgrec_image_Image_II(IntPtr jnienv, IntPtr native__this, IntPtr native_p0, int p1, int p2)
        {
            global::Org.Neuroph.Contrib.Imgrec.Image.ImageJ2SE __this = global::Java.Lang.Object.GetObject <global::Org.Neuroph.Contrib.Imgrec.Image.ImageJ2SE> (jnienv, native__this, JniHandleOwnership.DoNotTransfer);
            global::Org.Neuroph.Contrib.Imgrec.Image.IImage    p0     = (global::Org.Neuroph.Contrib.Imgrec.Image.IImage)global::Java.Lang.Object.GetObject <global::Org.Neuroph.Contrib.Imgrec.Image.IImage> (native_p0, JniHandleOwnership.DoNotTransfer);
            IntPtr __ret = JNIEnv.ToLocalJniHandle(__this.ResizeImage(p0, p1, p2));

            return(__ret);
        }
Пример #3
0
        static IntPtr n_RecognizeCharacterProbabilities_Lorg_neuroph_contrib_imgrec_image_Image_(IntPtr jnienv, IntPtr native__this, IntPtr native_p0)
        {
            global::Org.Neuroph.Contrib.Ocr.OcrPlugin       __this = global::Java.Lang.Object.GetObject <global::Org.Neuroph.Contrib.Ocr.OcrPlugin> (jnienv, native__this, JniHandleOwnership.DoNotTransfer);
            global::Org.Neuroph.Contrib.Imgrec.Image.IImage p0     = (global::Org.Neuroph.Contrib.Imgrec.Image.IImage)global::Java.Lang.Object.GetObject <global::Org.Neuroph.Contrib.Imgrec.Image.IImage> (native_p0, JniHandleOwnership.DoNotTransfer);
            IntPtr __ret = global::Android.Runtime.JavaDictionary.ToLocalJniHandle(__this.RecognizeCharacterProbabilities(p0));

            return(__ret);
        }
Пример #4
0
        static IntPtr n_RecognizeCharacter_Lorg_neuroph_contrib_imgrec_image_Image_Lorg_neuroph_contrib_imgrec_image_Dimension_(IntPtr jnienv, IntPtr native__this, IntPtr native_p0, IntPtr native_p1)
        {
            global::Org.Neuroph.Contrib.Ocr.OcrPlugin          __this = global::Java.Lang.Object.GetObject <global::Org.Neuroph.Contrib.Ocr.OcrPlugin> (jnienv, native__this, JniHandleOwnership.DoNotTransfer);
            global::Org.Neuroph.Contrib.Imgrec.Image.IImage    p0     = (global::Org.Neuroph.Contrib.Imgrec.Image.IImage)global::Java.Lang.Object.GetObject <global::Org.Neuroph.Contrib.Imgrec.Image.IImage> (native_p0, JniHandleOwnership.DoNotTransfer);
            global::Org.Neuroph.Contrib.Imgrec.Image.Dimension p1     = global::Java.Lang.Object.GetObject <global::Org.Neuroph.Contrib.Imgrec.Image.Dimension> (native_p1, JniHandleOwnership.DoNotTransfer);
            IntPtr __ret = JNIEnv.ToLocalJniHandle(__this.RecognizeCharacter(p0, p1));

            return(__ret);
        }
 static void n_SetPixels_arrayIIIIIII(IntPtr jnienv, IntPtr native__this, IntPtr native_p0, int p1, int p2, int p3, int p4, int p5, int p6)
 {
     global::Org.Neuroph.Contrib.Imgrec.Image.IImage __this = global::Java.Lang.Object.GetObject <global::Org.Neuroph.Contrib.Imgrec.Image.IImage> (jnienv, native__this, JniHandleOwnership.DoNotTransfer);
     int[] p0 = (int[])JNIEnv.GetArray(native_p0, JniHandleOwnership.DoNotTransfer, typeof(int));
     __this.SetPixels(p0, p1, p2, p3, p4, p5, p6);
     if (p0 != null)
     {
         JNIEnv.CopyArray(p0, native_p0);
     }
 }
 public static unsafe global::Org.Neuroph.Contrib.Imgrec.Image.IImage GetImage(global::Java.Net.URL p0)
 {
     if (id_getImage_Ljava_net_URL_ == IntPtr.Zero)
     {
         id_getImage_Ljava_net_URL_ = JNIEnv.GetStaticMethodID(class_ref, "getImage", "(Ljava/net/URL;)Lorg/neuroph/contrib/imgrec/image/Image;");
     }
     try {
         JValue *__args = stackalloc JValue [1];
         __args [0] = new JValue(p0);
         global::Org.Neuroph.Contrib.Imgrec.Image.IImage __ret = global::Java.Lang.Object.GetObject <global::Org.Neuroph.Contrib.Imgrec.Image.IImage> (JNIEnv.CallStaticObjectMethod(class_ref, id_getImage_Ljava_net_URL_, __args), JniHandleOwnership.TransferLocalRef);
         return(__ret);
     } finally {
     }
 }
        public unsafe global::Org.Neuroph.Contrib.Imgrec.Image.IImage ResizeImage(global::Org.Neuroph.Contrib.Imgrec.Image.IImage p0, int p1, int p2)
        {
            if (id_resizeImage_Lorg_neuroph_contrib_imgrec_image_Image_II == IntPtr.Zero)
            {
                id_resizeImage_Lorg_neuroph_contrib_imgrec_image_Image_II = JNIEnv.GetMethodID(class_ref, "resizeImage", "(Lorg/neuroph/contrib/imgrec/image/Image;II)Lorg/neuroph/contrib/imgrec/image/Image;");
            }
            JValue *__args = stackalloc JValue [3];

            __args [0] = new JValue(p0);
            __args [1] = new JValue(p1);
            __args [2] = new JValue(p2);
            global::Org.Neuroph.Contrib.Imgrec.Image.IImage __ret = global::Java.Lang.Object.GetObject <global::Org.Neuroph.Contrib.Imgrec.Image.IImage> (JNIEnv.CallObjectMethod(((global::Java.Lang.Object) this).Handle, id_resizeImage_Lorg_neuroph_contrib_imgrec_image_Image_II, __args), JniHandleOwnership.TransferLocalRef);
            return(__ret);
        }
Пример #8
0
 public static unsafe global::Org.Neuroph.Contrib.Imgrec.Image.IImage BlackAndWhiteCleaning(global::Org.Neuroph.Contrib.Imgrec.Image.IImage p0)
 {
     if (id_blackAndWhiteCleaning_Lorg_neuroph_contrib_imgrec_image_Image_ == IntPtr.Zero)
     {
         id_blackAndWhiteCleaning_Lorg_neuroph_contrib_imgrec_image_Image_ = JNIEnv.GetStaticMethodID(class_ref, "blackAndWhiteCleaning", "(Lorg/neuroph/contrib/imgrec/image/Image;)Lorg/neuroph/contrib/imgrec/image/Image;");
     }
     try {
         JValue *__args = stackalloc JValue [1];
         __args [0] = new JValue(p0);
         global::Org.Neuroph.Contrib.Imgrec.Image.IImage __ret = global::Java.Lang.Object.GetObject <global::Org.Neuroph.Contrib.Imgrec.Image.IImage> (JNIEnv.CallStaticObjectMethod(class_ref, id_blackAndWhiteCleaning_Lorg_neuroph_contrib_imgrec_image_Image_, __args), JniHandleOwnership.TransferLocalRef);
         return(__ret);
     } finally {
     }
 }
Пример #9
0
 public static unsafe global::Org.Neuroph.Contrib.Imgrec.Image.IImage DownSampleImage(global::Org.Neuroph.Contrib.Imgrec.Image.Dimension p0, global::Org.Neuroph.Contrib.Imgrec.Image.IImage p1)
 {
     if (id_downSampleImage_Lorg_neuroph_contrib_imgrec_image_Dimension_Lorg_neuroph_contrib_imgrec_image_Image_ == IntPtr.Zero)
     {
         id_downSampleImage_Lorg_neuroph_contrib_imgrec_image_Dimension_Lorg_neuroph_contrib_imgrec_image_Image_ = JNIEnv.GetStaticMethodID(class_ref, "downSampleImage", "(Lorg/neuroph/contrib/imgrec/image/Dimension;Lorg/neuroph/contrib/imgrec/image/Image;)Lorg/neuroph/contrib/imgrec/image/Image;");
     }
     try {
         JValue *__args = stackalloc JValue [2];
         __args [0] = new JValue(p0);
         __args [1] = new JValue(p1);
         global::Org.Neuroph.Contrib.Imgrec.Image.IImage __ret = global::Java.Lang.Object.GetObject <global::Org.Neuroph.Contrib.Imgrec.Image.IImage> (JNIEnv.CallStaticObjectMethod(class_ref, id_downSampleImage_Lorg_neuroph_contrib_imgrec_image_Dimension_Lorg_neuroph_contrib_imgrec_image_Image_, __args), JniHandleOwnership.TransferLocalRef);
         return(__ret);
     } finally {
     }
 }
 public static unsafe global::Org.Neuroph.Contrib.Imgrec.Image.IImage CreateImage(global::Java.Lang.Integer p0, global::Java.Lang.Integer p1, global::Java.Lang.Integer p2)
 {
     if (id_createImage_Ljava_lang_Integer_Ljava_lang_Integer_Ljava_lang_Integer_ == IntPtr.Zero)
     {
         id_createImage_Ljava_lang_Integer_Ljava_lang_Integer_Ljava_lang_Integer_ = JNIEnv.GetStaticMethodID(class_ref, "createImage", "(Ljava/lang/Integer;Ljava/lang/Integer;Ljava/lang/Integer;)Lorg/neuroph/contrib/imgrec/image/Image;");
     }
     try {
         JValue *__args = stackalloc JValue [3];
         __args [0] = new JValue(p0);
         __args [1] = new JValue(p1);
         __args [2] = new JValue(p2);
         global::Org.Neuroph.Contrib.Imgrec.Image.IImage __ret = global::Java.Lang.Object.GetObject <global::Org.Neuroph.Contrib.Imgrec.Image.IImage> (JNIEnv.CallStaticObjectMethod(class_ref, id_createImage_Ljava_lang_Integer_Ljava_lang_Integer_Ljava_lang_Integer_, __args), JniHandleOwnership.TransferLocalRef);
         return(__ret);
     } finally {
     }
 }
        public static unsafe global::Org.Neuroph.Contrib.Imgrec.Image.IImage GetImage(string p0)
        {
            if (id_getImage_Ljava_lang_String_ == IntPtr.Zero)
            {
                id_getImage_Ljava_lang_String_ = JNIEnv.GetStaticMethodID(class_ref, "getImage", "(Ljava/lang/String;)Lorg/neuroph/contrib/imgrec/image/Image;");
            }
            IntPtr native_p0 = JNIEnv.NewString(p0);

            try {
                JValue *__args = stackalloc JValue [1];
                __args [0] = new JValue(native_p0);
                global::Org.Neuroph.Contrib.Imgrec.Image.IImage __ret = global::Java.Lang.Object.GetObject <global::Org.Neuroph.Contrib.Imgrec.Image.IImage> (JNIEnv.CallStaticObjectMethod(class_ref, id_getImage_Ljava_lang_String_, __args), JniHandleOwnership.TransferLocalRef);
                return(__ret);
            } finally {
                JNIEnv.DeleteLocalRef(native_p0);
            }
        }
 public static unsafe global::Org.Neuroph.Contrib.Imgrec.Image.IImage CropImage(global::Org.Neuroph.Contrib.Imgrec.Image.IImage p0, int p1, int p2, int p3, int p4)
 {
     if (id_cropImage_Lorg_neuroph_contrib_imgrec_image_Image_IIII == IntPtr.Zero)
     {
         id_cropImage_Lorg_neuroph_contrib_imgrec_image_Image_IIII = JNIEnv.GetStaticMethodID(class_ref, "cropImage", "(Lorg/neuroph/contrib/imgrec/image/Image;IIII)Lorg/neuroph/contrib/imgrec/image/Image;");
     }
     try {
         JValue *__args = stackalloc JValue [5];
         __args [0] = new JValue(p0);
         __args [1] = new JValue(p1);
         __args [2] = new JValue(p2);
         __args [3] = new JValue(p3);
         __args [4] = new JValue(p4);
         global::Org.Neuroph.Contrib.Imgrec.Image.IImage __ret = global::Java.Lang.Object.GetObject <global::Org.Neuroph.Contrib.Imgrec.Image.IImage> (JNIEnv.CallStaticObjectMethod(class_ref, id_cropImage_Lorg_neuroph_contrib_imgrec_image_Image_IIII, __args), JniHandleOwnership.TransferLocalRef);
         return(__ret);
     } finally {
     }
 }
Пример #13
0
        public virtual unsafe void SetInput(global::Org.Neuroph.Contrib.Imgrec.Image.IImage p0)
        {
            if (id_setInput_Lorg_neuroph_contrib_imgrec_image_Image_ == IntPtr.Zero)
            {
                id_setInput_Lorg_neuroph_contrib_imgrec_image_Image_ = JNIEnv.GetMethodID(class_ref, "setInput", "(Lorg/neuroph/contrib/imgrec/image/Image;)V");
            }
            try {
                JValue *__args = stackalloc JValue [1];
                __args [0] = new JValue(p0);

                if (GetType() == ThresholdType)
                {
                    JNIEnv.CallVoidMethod(((global::Java.Lang.Object) this).Handle, id_setInput_Lorg_neuroph_contrib_imgrec_image_Image_, __args);
                }
                else
                {
                    JNIEnv.CallNonvirtualVoidMethod(((global::Java.Lang.Object) this).Handle, ThresholdClass, JNIEnv.GetMethodID(ThresholdClass, "setInput", "(Lorg/neuroph/contrib/imgrec/image/Image;)V"), __args);
                }
            } finally {
            }
        }
Пример #14
0
        public virtual unsafe global::Java.Lang.Character RecognizeCharacter(global::Org.Neuroph.Contrib.Imgrec.Image.IImage p0)
        {
            if (id_recognizeCharacter_Lorg_neuroph_contrib_imgrec_image_Image_ == IntPtr.Zero)
            {
                id_recognizeCharacter_Lorg_neuroph_contrib_imgrec_image_Image_ = JNIEnv.GetMethodID(class_ref, "recognizeCharacter", "(Lorg/neuroph/contrib/imgrec/image/Image;)Ljava/lang/Character;");
            }
            try {
                JValue *__args = stackalloc JValue [1];
                __args [0] = new JValue(p0);

                global::Java.Lang.Character __ret;
                if (GetType() == ThresholdType)
                {
                    __ret = global::Java.Lang.Object.GetObject <global::Java.Lang.Character> (JNIEnv.CallObjectMethod(((global::Java.Lang.Object) this).Handle, id_recognizeCharacter_Lorg_neuroph_contrib_imgrec_image_Image_, __args), JniHandleOwnership.TransferLocalRef);
                }
                else
                {
                    __ret = global::Java.Lang.Object.GetObject <global::Java.Lang.Character> (JNIEnv.CallNonvirtualObjectMethod(((global::Java.Lang.Object) this).Handle, ThresholdClass, JNIEnv.GetMethodID(ThresholdClass, "recognizeCharacter", "(Lorg/neuroph/contrib/imgrec/image/Image;)Ljava/lang/Character;"), __args), JniHandleOwnership.TransferLocalRef);
                }
                return(__ret);
            } finally {
            }
        }
 static void n_SetPixel_III(IntPtr jnienv, IntPtr native__this, int p0, int p1, int p2)
 {
     global::Org.Neuroph.Contrib.Imgrec.Image.IImage __this = global::Java.Lang.Object.GetObject <global::Org.Neuroph.Contrib.Imgrec.Image.IImage> (jnienv, native__this, JniHandleOwnership.DoNotTransfer);
     __this.SetPixel(p0, p1, p2);
 }
Пример #16
0
        public virtual unsafe global::System.Collections.IDictionary RecognizeCharacterProbabilities(global::Org.Neuroph.Contrib.Imgrec.Image.IImage p0)
        {
            if (id_recognizeCharacterProbabilities_Lorg_neuroph_contrib_imgrec_image_Image_ == IntPtr.Zero)
            {
                id_recognizeCharacterProbabilities_Lorg_neuroph_contrib_imgrec_image_Image_ = JNIEnv.GetMethodID(class_ref, "recognizeCharacterProbabilities", "(Lorg/neuroph/contrib/imgrec/image/Image;)Ljava/util/HashMap;");
            }
            try {
                JValue *__args = stackalloc JValue [1];
                __args [0] = new JValue(p0);

                global::System.Collections.IDictionary __ret;
                if (GetType() == ThresholdType)
                {
                    __ret = global::Android.Runtime.JavaDictionary.FromJniHandle(JNIEnv.CallObjectMethod(((global::Java.Lang.Object) this).Handle, id_recognizeCharacterProbabilities_Lorg_neuroph_contrib_imgrec_image_Image_, __args), JniHandleOwnership.TransferLocalRef);
                }
                else
                {
                    __ret = global::Android.Runtime.JavaDictionary.FromJniHandle(JNIEnv.CallNonvirtualObjectMethod(((global::Java.Lang.Object) this).Handle, ThresholdClass, JNIEnv.GetMethodID(ThresholdClass, "recognizeCharacterProbabilities", "(Lorg/neuroph/contrib/imgrec/image/Image;)Ljava/util/HashMap;"), __args), JniHandleOwnership.TransferLocalRef);
                }
                return(__ret);
            } finally {
            }
        }
 static void n_PopulateRGBArrays_Lorg_neuroph_contrib_imgrec_image_Image_(IntPtr jnienv, IntPtr native__this, IntPtr native_p0)
 {
     global::Org.Neuroph.Contrib.Imgrec.FractionRgbData __this = global::Java.Lang.Object.GetObject <global::Org.Neuroph.Contrib.Imgrec.FractionRgbData> (jnienv, native__this, JniHandleOwnership.DoNotTransfer);
     global::Org.Neuroph.Contrib.Imgrec.Image.IImage    p0     = (global::Org.Neuroph.Contrib.Imgrec.Image.IImage)global::Java.Lang.Object.GetObject <global::Org.Neuroph.Contrib.Imgrec.Image.IImage> (native_p0, JniHandleOwnership.DoNotTransfer);
     __this.PopulateRGBArrays(p0);
 }
        public virtual unsafe global::Org.Neuroph.Contrib.Imgrec.Image.IImage CropImage(global::Org.Neuroph.Contrib.Imgrec.Image.IImage p0, int p1, int p2, int p3, int p4)
        {
            if (id_cropImage_Lorg_neuroph_contrib_imgrec_image_Image_IIII == IntPtr.Zero)
            {
                id_cropImage_Lorg_neuroph_contrib_imgrec_image_Image_IIII = JNIEnv.GetMethodID(class_ref, "cropImage", "(Lorg/neuroph/contrib/imgrec/image/Image;IIII)Lorg/neuroph/contrib/imgrec/image/Image;");
            }
            try {
                JValue *__args = stackalloc JValue [5];
                __args [0] = new JValue(p0);
                __args [1] = new JValue(p1);
                __args [2] = new JValue(p2);
                __args [3] = new JValue(p3);
                __args [4] = new JValue(p4);

                global::Org.Neuroph.Contrib.Imgrec.Image.IImage __ret;
                if (GetType() == ThresholdType)
                {
                    __ret = global::Java.Lang.Object.GetObject <global::Org.Neuroph.Contrib.Imgrec.Image.IImage> (JNIEnv.CallObjectMethod(((global::Java.Lang.Object) this).Handle, id_cropImage_Lorg_neuroph_contrib_imgrec_image_Image_IIII, __args), JniHandleOwnership.TransferLocalRef);
                }
                else
                {
                    __ret = global::Java.Lang.Object.GetObject <global::Org.Neuroph.Contrib.Imgrec.Image.IImage> (JNIEnv.CallNonvirtualObjectMethod(((global::Java.Lang.Object) this).Handle, ThresholdClass, JNIEnv.GetMethodID(ThresholdClass, "cropImage", "(Lorg/neuroph/contrib/imgrec/image/Image;IIII)Lorg/neuroph/contrib/imgrec/image/Image;"), __args), JniHandleOwnership.TransferLocalRef);
                }
                return(__ret);
            } finally {
            }
        }
Пример #19
0
 static void n_SetInput_Lorg_neuroph_contrib_imgrec_image_Image_(IntPtr jnienv, IntPtr native__this, IntPtr native_p0)
 {
     global::Org.Neuroph.Contrib.Imgrec.ImageRecognitionPlugin __this = global::Java.Lang.Object.GetObject <global::Org.Neuroph.Contrib.Imgrec.ImageRecognitionPlugin> (jnienv, native__this, JniHandleOwnership.DoNotTransfer);
     global::Org.Neuroph.Contrib.Imgrec.Image.IImage           p0     = (global::Org.Neuroph.Contrib.Imgrec.Image.IImage)global::Java.Lang.Object.GetObject <global::Org.Neuroph.Contrib.Imgrec.Image.IImage> (native_p0, JniHandleOwnership.DoNotTransfer);
     __this.SetInput(p0);
 }
 static int n_GetHeight(IntPtr jnienv, IntPtr native__this)
 {
     global::Org.Neuroph.Contrib.Imgrec.Image.IImage __this = global::Java.Lang.Object.GetObject <global::Org.Neuroph.Contrib.Imgrec.Image.IImage> (jnienv, native__this, JniHandleOwnership.DoNotTransfer);
     return(__this.Height);
 }
 static int n_GetPixel_II(IntPtr jnienv, IntPtr native__this, int p0, int p1)
 {
     global::Org.Neuroph.Contrib.Imgrec.Image.IImage __this = global::Java.Lang.Object.GetObject <global::Org.Neuroph.Contrib.Imgrec.Image.IImage> (jnienv, native__this, JniHandleOwnership.DoNotTransfer);
     return(__this.GetPixel(p0, p1));
 }
 static IntPtr n_GetPixels_IIIIII(IntPtr jnienv, IntPtr native__this, int p0, int p1, int p2, int p3, int p4, int p5)
 {
     global::Org.Neuroph.Contrib.Imgrec.Image.IImage __this = global::Java.Lang.Object.GetObject <global::Org.Neuroph.Contrib.Imgrec.Image.IImage> (jnienv, native__this, JniHandleOwnership.DoNotTransfer);
     return(JNIEnv.NewArray(__this.GetPixels(p0, p1, p2, p3, p4, p5)));
 }