Beispiel #1
0
        public unsafe FractionRgbData(global::Org.Neuroph.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/imgrec/image/Image;)V", __args),
                        JniHandleOwnership.TransferLocalRef);
                    global::Android.Runtime.JNIEnv.FinishCreateInstance(((global::Java.Lang.Object) this).Handle, "(Lorg/neuroph/imgrec/image/Image;)V", __args);
                    return;
                }

                if (id_ctor_Lorg_neuroph_imgrec_image_Image_ == IntPtr.Zero)
                {
                    id_ctor_Lorg_neuroph_imgrec_image_Image_ = JNIEnv.GetMethodID(class_ref, "<init>", "(Lorg/neuroph/imgrec/image/Image;)V");
                }
                SetHandle(
                    global::Android.Runtime.JNIEnv.StartCreateInstance(class_ref, id_ctor_Lorg_neuroph_imgrec_image_Image_, __args),
                    JniHandleOwnership.TransferLocalRef);
                JNIEnv.FinishCreateInstance(((global::Java.Lang.Object) this).Handle, class_ref, id_ctor_Lorg_neuroph_imgrec_image_Image_, __args);
            } finally {
            }
        }
Beispiel #2
0
        static IntPtr n_RecognizeImage_Lorg_neuroph_imgrec_image_Image_(IntPtr jnienv, IntPtr native__this, IntPtr native_p0)
        {
            global::Org.Neuroph.Imgrec.ImageRecognitionPlugin __this = global::Java.Lang.Object.GetObject <global::Org.Neuroph.Imgrec.ImageRecognitionPlugin> (jnienv, native__this, JniHandleOwnership.DoNotTransfer);
            global::Org.Neuroph.Imgrec.Image.IImage           p0     = (global::Org.Neuroph.Imgrec.Image.IImage)global::Java.Lang.Object.GetObject <global::Org.Neuroph.Imgrec.Image.IImage> (native_p0, JniHandleOwnership.DoNotTransfer);
            IntPtr __ret = global::Android.Runtime.JavaDictionary <string, global::Java.Lang.Double> .ToLocalJniHandle(__this.RecognizeImage(p0));

            return(__ret);
        }
        static IntPtr n_RecognizeCharacter_Lorg_neuroph_imgrec_image_Image_(IntPtr jnienv, IntPtr native__this, IntPtr native_p0)
        {
            global::Org.Neuroph.Ocr.OcrPlugin       __this = global::Java.Lang.Object.GetObject <global::Org.Neuroph.Ocr.OcrPlugin> (jnienv, native__this, JniHandleOwnership.DoNotTransfer);
            global::Org.Neuroph.Imgrec.Image.IImage p0     = (global::Org.Neuroph.Imgrec.Image.IImage)global::Java.Lang.Object.GetObject <global::Org.Neuroph.Imgrec.Image.IImage> (native_p0, JniHandleOwnership.DoNotTransfer);
            IntPtr __ret = JNIEnv.ToLocalJniHandle(__this.RecognizeCharacter(p0));

            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.Imgrec.Image.IImage __this = global::Java.Lang.Object.GetObject <global::Org.Neuroph.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);
     }
 }
Beispiel #5
0
 protected unsafe void PopulateRGBArrays(global::Org.Neuroph.Imgrec.Image.IImage p0)
 {
     if (id_populateRGBArrays_Lorg_neuroph_imgrec_image_Image_ == IntPtr.Zero)
     {
         id_populateRGBArrays_Lorg_neuroph_imgrec_image_Image_ = JNIEnv.GetMethodID(class_ref, "populateRGBArrays", "(Lorg/neuroph/imgrec/image/Image;)V");
     }
     try {
         JValue *__args = stackalloc JValue [1];
         __args [0] = new JValue(p0);
         JNIEnv.CallVoidMethod(((global::Java.Lang.Object) this).Handle, id_populateRGBArrays_Lorg_neuroph_imgrec_image_Image_, __args);
     } finally {
     }
 }
 public static unsafe global::Org.Neuroph.Imgrec.Image.IImage GetImage(global::Java.IO.File p0)
 {
     if (id_getImage_Ljava_io_File_ == IntPtr.Zero)
     {
         id_getImage_Ljava_io_File_ = JNIEnv.GetStaticMethodID(class_ref, "getImage", "(Ljava/io/File;)Lorg/neuroph/imgrec/image/Image;");
     }
     try {
         JValue *__args = stackalloc JValue [1];
         __args [0] = new JValue(p0);
         global::Org.Neuroph.Imgrec.Image.IImage __ret = global::Java.Lang.Object.GetObject <global::Org.Neuroph.Imgrec.Image.IImage> (JNIEnv.CallStaticObjectMethod(class_ref, id_getImage_Ljava_io_File_, __args), JniHandleOwnership.TransferLocalRef);
         return(__ret);
     } finally {
     }
 }
Beispiel #7
0
 public static unsafe global::Org.Neuroph.Imgrec.Image.IImage BlackAndWhiteCleaning(global::Org.Neuroph.Imgrec.Image.IImage p0)
 {
     if (id_blackAndWhiteCleaning_Lorg_neuroph_imgrec_image_Image_ == IntPtr.Zero)
     {
         id_blackAndWhiteCleaning_Lorg_neuroph_imgrec_image_Image_ = JNIEnv.GetStaticMethodID(class_ref, "blackAndWhiteCleaning", "(Lorg/neuroph/imgrec/image/Image;)Lorg/neuroph/imgrec/image/Image;");
     }
     try {
         JValue *__args = stackalloc JValue [1];
         __args [0] = new JValue(p0);
         global::Org.Neuroph.Imgrec.Image.IImage __ret = global::Java.Lang.Object.GetObject <global::Org.Neuroph.Imgrec.Image.IImage> (JNIEnv.CallStaticObjectMethod(class_ref, id_blackAndWhiteCleaning_Lorg_neuroph_imgrec_image_Image_, __args), JniHandleOwnership.TransferLocalRef);
         return(__ret);
     } finally {
     }
 }
Beispiel #8
0
 public static unsafe global::Org.Neuroph.Imgrec.Image.IImage DownSampleImage(global::Org.Neuroph.Imgrec.Image.Dimension p0, global::Org.Neuroph.Imgrec.Image.IImage p1)
 {
     if (id_downSampleImage_Lorg_neuroph_imgrec_image_Dimension_Lorg_neuroph_imgrec_image_Image_ == IntPtr.Zero)
     {
         id_downSampleImage_Lorg_neuroph_imgrec_image_Dimension_Lorg_neuroph_imgrec_image_Image_ = JNIEnv.GetStaticMethodID(class_ref, "downSampleImage", "(Lorg/neuroph/imgrec/image/Dimension;Lorg/neuroph/imgrec/image/Image;)Lorg/neuroph/imgrec/image/Image;");
     }
     try {
         JValue *__args = stackalloc JValue [2];
         __args [0] = new JValue(p0);
         __args [1] = new JValue(p1);
         global::Org.Neuroph.Imgrec.Image.IImage __ret = global::Java.Lang.Object.GetObject <global::Org.Neuroph.Imgrec.Image.IImage> (JNIEnv.CallStaticObjectMethod(class_ref, id_downSampleImage_Lorg_neuroph_imgrec_image_Dimension_Lorg_neuroph_imgrec_image_Image_, __args), JniHandleOwnership.TransferLocalRef);
         return(__ret);
     } finally {
     }
 }
 public static unsafe global::Org.Neuroph.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/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.Imgrec.Image.IImage __ret = global::Java.Lang.Object.GetObject <global::Org.Neuroph.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.Imgrec.Image.IImage ResizeImage(global::Org.Neuroph.Imgrec.Image.IImage p0, int p1, int p2)
 {
     if (id_resizeImage_Lorg_neuroph_imgrec_image_Image_II == IntPtr.Zero)
     {
         id_resizeImage_Lorg_neuroph_imgrec_image_Image_II = JNIEnv.GetStaticMethodID(class_ref, "resizeImage", "(Lorg/neuroph/imgrec/image/Image;II)Lorg/neuroph/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.Imgrec.Image.IImage __ret = global::Java.Lang.Object.GetObject <global::Org.Neuroph.Imgrec.Image.IImage> (JNIEnv.CallStaticObjectMethod(class_ref, id_resizeImage_Lorg_neuroph_imgrec_image_Image_II, __args), JniHandleOwnership.TransferLocalRef);
         return(__ret);
     } finally {
     }
 }
        public static unsafe global::Org.Neuroph.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/imgrec/image/Image;");
            }
            IntPtr native_p0 = JNIEnv.NewString(p0);

            try {
                JValue *__args = stackalloc JValue [1];
                __args [0] = new JValue(native_p0);
                global::Org.Neuroph.Imgrec.Image.IImage __ret = global::Java.Lang.Object.GetObject <global::Org.Neuroph.Imgrec.Image.IImage> (JNIEnv.CallStaticObjectMethod(class_ref, id_getImage_Ljava_lang_String_, __args), JniHandleOwnership.TransferLocalRef);
                return(__ret);
            } finally {
                JNIEnv.DeleteLocalRef(native_p0);
            }
        }
Beispiel #12
0
        public virtual unsafe void SetInput(global::Org.Neuroph.Imgrec.Image.IImage p0)
        {
            if (id_setInput_Lorg_neuroph_imgrec_image_Image_ == IntPtr.Zero)
            {
                id_setInput_Lorg_neuroph_imgrec_image_Image_ = JNIEnv.GetMethodID(class_ref, "setInput", "(Lorg/neuroph/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_imgrec_image_Image_, __args);
                }
                else
                {
                    JNIEnv.CallNonvirtualVoidMethod(((global::Java.Lang.Object) this).Handle, ThresholdClass, JNIEnv.GetMethodID(ThresholdClass, "setInput", "(Lorg/neuroph/imgrec/image/Image;)V"), __args);
                }
            } finally {
            }
        }
        public virtual unsafe global::Java.Lang.Character RecognizeCharacter(global::Org.Neuroph.Imgrec.Image.IImage p0)
        {
            if (id_recognizeCharacter_Lorg_neuroph_imgrec_image_Image_ == IntPtr.Zero)
            {
                id_recognizeCharacter_Lorg_neuroph_imgrec_image_Image_ = JNIEnv.GetMethodID(class_ref, "recognizeCharacter", "(Lorg/neuroph/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_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/imgrec/image/Image;)Ljava/lang/Character;"), __args), JniHandleOwnership.TransferLocalRef);
                }
                return(__ret);
            } finally {
            }
        }
 static IntPtr n_Resize_II(IntPtr jnienv, IntPtr native__this, int p0, int p1)
 {
     global::Org.Neuroph.Imgrec.Image.IImage __this = global::Java.Lang.Object.GetObject <global::Org.Neuroph.Imgrec.Image.IImage> (jnienv, native__this, JniHandleOwnership.DoNotTransfer);
     return(JNIEnv.ToLocalJniHandle(__this.Resize(p0, p1)));
 }
Beispiel #15
0
 static void n_SetInput_Lorg_neuroph_imgrec_image_Image_(IntPtr jnienv, IntPtr native__this, IntPtr native_p0)
 {
     global::Org.Neuroph.Imgrec.ImageRecognitionPlugin __this = global::Java.Lang.Object.GetObject <global::Org.Neuroph.Imgrec.ImageRecognitionPlugin> (jnienv, native__this, JniHandleOwnership.DoNotTransfer);
     global::Org.Neuroph.Imgrec.Image.IImage           p0     = (global::Org.Neuroph.Imgrec.Image.IImage)global::Java.Lang.Object.GetObject <global::Org.Neuroph.Imgrec.Image.IImage> (native_p0, JniHandleOwnership.DoNotTransfer);
     __this.SetInput(p0);
 }
Beispiel #16
0
        public virtual unsafe global::System.Collections.Generic.IDictionary <string, global::Java.Lang.Double> RecognizeImage(global::Org.Neuroph.Imgrec.Image.IImage p0)
        {
            if (id_recognizeImage_Lorg_neuroph_imgrec_image_Image_ == IntPtr.Zero)
            {
                id_recognizeImage_Lorg_neuroph_imgrec_image_Image_ = JNIEnv.GetMethodID(class_ref, "recognizeImage", "(Lorg/neuroph/imgrec/image/Image;)Ljava/util/HashMap;");
            }
            try {
                JValue *__args = stackalloc JValue [1];
                __args [0] = new JValue(p0);

                global::System.Collections.Generic.IDictionary <string, global::Java.Lang.Double> __ret;
                if (GetType() == ThresholdType)
                {
                    __ret = global::Android.Runtime.JavaDictionary <string, global::Java.Lang.Double> .FromJniHandle(JNIEnv.CallObjectMethod(((global::Java.Lang.Object) this).Handle, id_recognizeImage_Lorg_neuroph_imgrec_image_Image_, __args), JniHandleOwnership.TransferLocalRef);
                }
                else
                {
                    __ret = global::Android.Runtime.JavaDictionary <string, global::Java.Lang.Double> .FromJniHandle(JNIEnv.CallNonvirtualObjectMethod(((global::Java.Lang.Object) this).Handle, ThresholdClass, JNIEnv.GetMethodID(ThresholdClass, "recognizeImage", "(Lorg/neuroph/imgrec/image/Image;)Ljava/util/HashMap;"), __args), JniHandleOwnership.TransferLocalRef);
                }
                return(__ret);
            } finally {
            }
        }
 static int n_GetWidth(IntPtr jnienv, IntPtr native__this)
 {
     global::Org.Neuroph.Imgrec.Image.IImage __this = global::Java.Lang.Object.GetObject <global::Org.Neuroph.Imgrec.Image.IImage> (jnienv, native__this, JniHandleOwnership.DoNotTransfer);
     return(__this.Width);
 }
 static int n_GetPixel_II(IntPtr jnienv, IntPtr native__this, int p0, int p1)
 {
     global::Org.Neuroph.Imgrec.Image.IImage __this = global::Java.Lang.Object.GetObject <global::Org.Neuroph.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.Imgrec.Image.IImage __this = global::Java.Lang.Object.GetObject <global::Org.Neuroph.Imgrec.Image.IImage> (jnienv, native__this, JniHandleOwnership.DoNotTransfer);
     return(JNIEnv.NewArray(__this.GetPixels(p0, p1, p2, p3, p4, p5)));
 }
 static void n_SetPixel_III(IntPtr jnienv, IntPtr native__this, int p0, int p1, int p2)
 {
     global::Org.Neuroph.Imgrec.Image.IImage __this = global::Java.Lang.Object.GetObject <global::Org.Neuroph.Imgrec.Image.IImage> (jnienv, native__this, JniHandleOwnership.DoNotTransfer);
     __this.SetPixel(p0, p1, p2);
 }