summaryrefslogtreecommitdiff
path: root/sci_gateway1/cpp/libFOSSEE_Image_Processing_Toolbox.c
diff options
context:
space:
mode:
Diffstat (limited to 'sci_gateway1/cpp/libFOSSEE_Image_Processing_Toolbox.c')
-rw-r--r--sci_gateway1/cpp/libFOSSEE_Image_Processing_Toolbox.c30
1 files changed, 30 insertions, 0 deletions
diff --git a/sci_gateway1/cpp/libFOSSEE_Image_Processing_Toolbox.c b/sci_gateway1/cpp/libFOSSEE_Image_Processing_Toolbox.c
new file mode 100644
index 0000000..a504d15
--- /dev/null
+++ b/sci_gateway1/cpp/libFOSSEE_Image_Processing_Toolbox.c
@@ -0,0 +1,30 @@
+#ifdef __cplusplus
+extern "C" {
+#endif
+#include <mex.h>
+#include <sci_gateway.h>
+#include <api_scilab.h>
+#include <MALLOC.h>
+static int direct_gateway(char *fname,void F(void)) { F();return 0;};
+extern Gatefunc opencv_imread;
+static GenericTable Tab[]={
+ {(Myinterfun)sci_gateway,opencv_imread,"opencv_imread"},
+};
+
+int C2F(libFOSSEE_Image_Processing_Toolbox)()
+{
+ Rhs = Max(0, Rhs);
+ if (*(Tab[Fin-1].f) != NULL)
+ {
+ if(pvApiCtx == NULL)
+ {
+ pvApiCtx = (StrCtx*)MALLOC(sizeof(StrCtx));
+ }
+ pvApiCtx->pstName = (char*)Tab[Fin-1].name;
+ (*(Tab[Fin-1].f))(Tab[Fin-1].name,Tab[Fin-1].F);
+ }
+ return 0;
+}
+#ifdef __cplusplus
+}
+#endif