summaryrefslogtreecommitdiff
path: root/sci_gateway1/cpp/libskeleton_imageprocessing.c
diff options
context:
space:
mode:
authorshamikam2017-01-16 02:56:17 +0530
committershamikam2017-01-16 02:56:17 +0530
commita6df67e8bcd5159cde27556f4f6a315f8dc2215f (patch)
treee806e966b06a53388fb300d89534354b222c2cad /sci_gateway1/cpp/libskeleton_imageprocessing.c
downloadFOSSEE_Image_Processing_Toolbox-master.tar.gz
FOSSEE_Image_Processing_Toolbox-master.tar.bz2
FOSSEE_Image_Processing_Toolbox-master.zip
First CommitHEADmaster
Diffstat (limited to 'sci_gateway1/cpp/libskeleton_imageprocessing.c')
-rw-r--r--sci_gateway1/cpp/libskeleton_imageprocessing.c38
1 files changed, 38 insertions, 0 deletions
diff --git a/sci_gateway1/cpp/libskeleton_imageprocessing.c b/sci_gateway1/cpp/libskeleton_imageprocessing.c
new file mode 100644
index 0000000..4fbf87c
--- /dev/null
+++ b/sci_gateway1/cpp/libskeleton_imageprocessing.c
@@ -0,0 +1,38 @@
+#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;
+extern Gatefunc opencv_imcrop;
+extern Gatefunc opencv_imresize;
+extern Gatefunc opencv_imsharpen;
+extern Gatefunc opencv_imwrite;
+static GenericTable Tab[]={
+ {(Myinterfun)sci_gateway_without_putlhsvar,opencv_imread,"opencv_imread"},
+ {(Myinterfun)sci_gateway_without_putlhsvar,opencv_imcrop,"opencv_imcrop"},
+ {(Myinterfun)sci_gateway_without_putlhsvar,opencv_imresize,"opencv_imresize"},
+ {(Myinterfun)sci_gateway_without_putlhsvar,opencv_imsharpen,"opencv_imsharpen"},
+ {(Myinterfun)sci_gateway_without_putlhsvar,opencv_imwrite,"opencv_imwrite"},
+};
+
+int C2F(libskeleton_imageprocessing)()
+{
+ 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