public unsafe ImageRecognitionPlugin(global::Org.Neuroph.Imgrec.Image.Dimension p0, global::Org.Neuroph.Imgrec.ColorMode p1) : base(IntPtr.Zero, JniHandleOwnership.DoNotTransfer) { if (((global::Java.Lang.Object) this).Handle != IntPtr.Zero) { return; } try { JValue *__args = stackalloc JValue [2]; __args [0] = new JValue(p0); __args [1] = new JValue(p1); if (GetType() != typeof(ImageRecognitionPlugin)) { SetHandle( global::Android.Runtime.JNIEnv.StartCreateInstance(GetType(), "(Lorg/neuroph/imgrec/image/Dimension;Lorg/neuroph/imgrec/ColorMode;)V", __args), JniHandleOwnership.TransferLocalRef); global::Android.Runtime.JNIEnv.FinishCreateInstance(((global::Java.Lang.Object) this).Handle, "(Lorg/neuroph/imgrec/image/Dimension;Lorg/neuroph/imgrec/ColorMode;)V", __args); return; } if (id_ctor_Lorg_neuroph_imgrec_image_Dimension_Lorg_neuroph_imgrec_ColorMode_ == IntPtr.Zero) { id_ctor_Lorg_neuroph_imgrec_image_Dimension_Lorg_neuroph_imgrec_ColorMode_ = JNIEnv.GetMethodID(class_ref, "<init>", "(Lorg/neuroph/imgrec/image/Dimension;Lorg/neuroph/imgrec/ColorMode;)V"); } SetHandle( global::Android.Runtime.JNIEnv.StartCreateInstance(class_ref, id_ctor_Lorg_neuroph_imgrec_image_Dimension_Lorg_neuroph_imgrec_ColorMode_, __args), JniHandleOwnership.TransferLocalRef); JNIEnv.FinishCreateInstance(((global::Java.Lang.Object) this).Handle, class_ref, id_ctor_Lorg_neuroph_imgrec_image_Dimension_Lorg_neuroph_imgrec_ColorMode_, __args); } finally { } }
static IntPtr n_RecognizeCharacter_Lorg_neuroph_imgrec_image_Image_Lorg_neuroph_imgrec_image_Dimension_(IntPtr jnienv, IntPtr native__this, IntPtr native_p0, IntPtr native_p1) { 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); global::Org.Neuroph.Imgrec.Image.Dimension p1 = global::Java.Lang.Object.GetObject <global::Org.Neuroph.Imgrec.Image.Dimension> (native_p1, JniHandleOwnership.DoNotTransfer); IntPtr __ret = JNIEnv.ToLocalJniHandle(__this.RecognizeCharacter(p0, p1)); return(__ret); }
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.Core.NeuralNetwork CreateNewNeuralNetwork(string p0, global::Org.Neuroph.Imgrec.Image.Dimension p1, global::Org.Neuroph.Imgrec.ColorMode p2, global::System.Collections.Generic.IList <string> p3, global::System.Collections.Generic.IList <global::Java.Lang.Integer> p4, global::Org.Neuroph.Util.TransferFunctionType p5) { if (id_createNewNeuralNetwork_Ljava_lang_String_Lorg_neuroph_imgrec_image_Dimension_Lorg_neuroph_imgrec_ColorMode_Ljava_util_List_Ljava_util_List_Lorg_neuroph_util_TransferFunctionType_ == IntPtr.Zero) { id_createNewNeuralNetwork_Ljava_lang_String_Lorg_neuroph_imgrec_image_Dimension_Lorg_neuroph_imgrec_ColorMode_Ljava_util_List_Ljava_util_List_Lorg_neuroph_util_TransferFunctionType_ = JNIEnv.GetStaticMethodID(class_ref, "createNewNeuralNetwork", "(Ljava/lang/String;Lorg/neuroph/imgrec/image/Dimension;Lorg/neuroph/imgrec/ColorMode;Ljava/util/List;Ljava/util/List;Lorg/neuroph/util/TransferFunctionType;)Lorg/neuroph/core/NeuralNetwork;"); } IntPtr native_p0 = JNIEnv.NewString(p0); IntPtr native_p3 = global::Android.Runtime.JavaList <string> .ToLocalJniHandle(p3); IntPtr native_p4 = global::Android.Runtime.JavaList <global::Java.Lang.Integer> .ToLocalJniHandle(p4); try { JValue *__args = stackalloc JValue [6]; __args [0] = new JValue(native_p0); __args [1] = new JValue(p1); __args [2] = new JValue(p2); __args [3] = new JValue(native_p3); __args [4] = new JValue(native_p4); __args [5] = new JValue(p5); global::Org.Neuroph.Core.NeuralNetwork __ret = global::Java.Lang.Object.GetObject <global::Org.Neuroph.Core.NeuralNetwork> (JNIEnv.CallStaticObjectMethod(class_ref, id_createNewNeuralNetwork_Ljava_lang_String_Lorg_neuroph_imgrec_image_Dimension_Lorg_neuroph_imgrec_ColorMode_Ljava_util_List_Ljava_util_List_Lorg_neuroph_util_TransferFunctionType_, __args), JniHandleOwnership.TransferLocalRef); return(__ret); } finally { JNIEnv.DeleteLocalRef(native_p0); JNIEnv.DeleteLocalRef(native_p3); JNIEnv.DeleteLocalRef(native_p4); } }
public virtual unsafe global::Java.Lang.Character RecognizeCharacter(global::Org.Neuroph.Imgrec.Image.IImage p0, global::Org.Neuroph.Imgrec.Image.Dimension p1) { if (id_recognizeCharacter_Lorg_neuroph_imgrec_image_Image_Lorg_neuroph_imgrec_image_Dimension_ == IntPtr.Zero) { id_recognizeCharacter_Lorg_neuroph_imgrec_image_Image_Lorg_neuroph_imgrec_image_Dimension_ = JNIEnv.GetMethodID(class_ref, "recognizeCharacter", "(Lorg/neuroph/imgrec/image/Image;Lorg/neuroph/imgrec/image/Dimension;)Ljava/lang/Character;"); } try { JValue *__args = stackalloc JValue [2]; __args [0] = new JValue(p0); __args [1] = new JValue(p1); 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_Lorg_neuroph_imgrec_image_Dimension_, __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;Lorg/neuroph/imgrec/image/Dimension;)Ljava/lang/Character;"), __args), JniHandleOwnership.TransferLocalRef); } return(__ret); } finally { } }
static void n_SetHeight_I(IntPtr jnienv, IntPtr native__this, int p0) { global::Org.Neuroph.Imgrec.Image.Dimension __this = global::Java.Lang.Object.GetObject <global::Org.Neuroph.Imgrec.Image.Dimension> (jnienv, native__this, JniHandleOwnership.DoNotTransfer); __this.Height = p0; }
static int n_GetHeight(IntPtr jnienv, IntPtr native__this) { global::Org.Neuroph.Imgrec.Image.Dimension __this = global::Java.Lang.Object.GetObject <global::Org.Neuroph.Imgrec.Image.Dimension> (jnienv, native__this, JniHandleOwnership.DoNotTransfer); return(__this.Height); }