summaryrefslogtreecommitdiff
path: root/src/c/imageProcessing/interfaces
diff options
context:
space:
mode:
authorsiddhu89902016-08-18 15:47:18 +0530
committersiddhu89902016-08-18 15:47:18 +0530
commitc8fd6991786ccddb44547b619178bb391f3f9b96 (patch)
treecd1cacd7796d85875e8b2bb15780902c55f42db1 /src/c/imageProcessing/interfaces
parent24fbba33153e7758df4a990cb4c21ae8e53e6f3e (diff)
downloadScilab2C_fossee_old-c8fd6991786ccddb44547b619178bb391f3f9b96.tar.gz
Scilab2C_fossee_old-c8fd6991786ccddb44547b619178bb391f3f9b96.tar.bz2
Scilab2C_fossee_old-c8fd6991786ccddb44547b619178bb391f3f9b96.zip
RPi-PWM and basic imaage processing
Diffstat (limited to 'src/c/imageProcessing/interfaces')
-rw-r--r--src/c/imageProcessing/interfaces/int_cvcore.h31
-rw-r--r--src/c/imageProcessing/interfaces/int_cvhighgui.h34
2 files changed, 65 insertions, 0 deletions
diff --git a/src/c/imageProcessing/interfaces/int_cvcore.h b/src/c/imageProcessing/interfaces/int_cvcore.h
new file mode 100644
index 0000000..9d83caa
--- /dev/null
+++ b/src/c/imageProcessing/interfaces/int_cvcore.h
@@ -0,0 +1,31 @@
+/* Copyright (C) 2016 - IIT Bombay - FOSSEE
+
+ This file must be used under the terms of the CeCILL.
+ This source file is licensed as described in the file COPYING, which
+ you should have received as part of this distribution. The terms
+ are also available at
+ http://www.cecill.info/licences/Licence_CeCILL_V2-en.txt
+ Author: Siddhesh Wani
+ Organization: FOSSEE, IIT Bombay
+ Email: toolbox@scilab.in
+*/
+
+#ifndef __INT_CVCORE_H__
+#define __INT_CVCORE_H__
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+
+#include "types.h"
+
+
+#define d0d0g2d0CV_CreateImageim0(width,height,depth,depth_size,no_of_ch) \
+ imcvCreateImages(width,height,depth,no_of_ch)
+
+#ifdef __cplusplus
+} /* extern "C" */
+#endif
+
+#endif /*__INT_CVCORE_H__*/
diff --git a/src/c/imageProcessing/interfaces/int_cvhighgui.h b/src/c/imageProcessing/interfaces/int_cvhighgui.h
new file mode 100644
index 0000000..f08ac40
--- /dev/null
+++ b/src/c/imageProcessing/interfaces/int_cvhighgui.h
@@ -0,0 +1,34 @@
+/* Copyright (C) 2016 - IIT Bombay - FOSSEE
+
+ This file must be used under the terms of the CeCILL.
+ This source file is licensed as described in the file COPYING, which
+ you should have received as part of this distribution. The terms
+ are also available at
+ http://www.cecill.info/licences/Licence_CeCILL_V2-en.txt
+ Author: Siddhesh Wani
+ Organization: FOSSEE, IIT Bombay
+ Email: toolbox@scilab.in
+*/
+
+#ifndef __INT_CVHIGHGUI_H__
+#define __INT_CVHIGHGUI_H__
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+
+#include "types.h"
+#include "opencv2/highgui.hpp"
+
+#define g2d0CV_LoadImageim0(filename,name_size,loadtype) imcvLoadImages(filename,loadtype)
+#define g2im0CV_ShowImageu80(winname,win_size,img) imcvShowImages(winname,img)
+#define im0CV_ShowImageu80(img) imcvShowImages("",img)
+#define d0CV_WaitKeyu80(delay) cvWaitKey(delay)
+#define g2im0CV_SaveImageu80(filename,name_size,img) cvSaveImage(filename,img,NULL)
+
+#ifdef __cplusplus
+} /* extern "C" */
+#endif
+
+#endif /*__INT_CVHIGHGUI_H__*/